- Home
- .NET code examples
- Download a Blazor WebAssembly button onclick event example
Download a Blazor WebAssembly button onclick event example
Download the code example for a Blazor WebAssembly button onclick event example.
[Parameter] attribute to set up an onclick event in a child Razor component. By setting up a EventCallback type property and using the parameter attribute, we can pass an onclick event to another Razor component.
Software
This is the software that will need to be installed onto your machine.
- Visual Studio 2019. Version 16.10.3 or above (may work with lower versions). It will work with the free community version.
- .NET 5.0 SDK, or above.
Get The Application Working
These are the steps to get the application working.
- Fill out the code example form. We will send you an email where you can download the code example.
You are now ready to go.
Open the Project in Visual Studio
Open up RoundTheCode.BlazorOnClick.sln in Visual Studio.
https://localhost:4500, and the application will run.
More Information
Watch our YouTube tutorial, where we go about using the button onclick event to create and delete a record from a list.
In addition, read our article on How to use the button onclick event in Blazor WebAssembly, which will discuss how we went about building the Blazor Wasm application.
Give us your anonymous feedback regarding this page, or any other areas of the website.
Watch .NET tutorials
Subscribe to our YouTube channel
Related code examples