title: Register event from blazor component into razor page
body: <p>I have a razor page project where I want to include a composant from a blazor client project. The two project are in dotnet 6.</p>
  <p>I manage to have the composant working and to pass some value to it (via the param-{ParameterName})</p>
  <pre><code>&lt;component type=&quot;typeof(KeywordFilterBlazor.Pages.Index)&quot; render-mode=&quot;WebAssemblyPrerendered&quot; 
     param-TestValue=&quot;@Model.TestValue&quot; /&gt;
  </code></pre>
  <p>And now I want to be able to react to event inside the component, like a button click.</p>
  <p>I already have a project in Web forms that communicate with a Blazor component (instantiated with an iframe) via javascript message.</p>
  <p>I can use the javascript message but I would like to know if there is a better solution since integrating Blazor into Razor is directly supported (not like in the old web forms project).</p>
  <p>It can be something like this <a href="https://andrewlock.net/replacing-ajax-calls-in-razor-pages-using-razor-components-and-blazor/" rel="nofollow noreferrer">exemple</a> where he uses from field to get the value from blazor fields into the razor form. But I would also like to the button inside the blazor component, with a preference if I can have multiple button.</p>
  <p>Does someone has a good solution to handle this problem ?</p>