How to change the loading text in Blazor WebAssembly application?
You can change the loading text in Blazor web assembly application using <app> tag in index.html page. In the following example, I have changed the loading text to compiling.
How to check whether the current app is Blazor server-side or web assembly?
You can check whether the current app is Blazor server-side or web assembly using the “IJSInProcessRuntime” interface. In the following example, I have checked whether the app is a web assembly or server side on button click.
How to execute async method on button click in Blazor?
In Blazor, all native events are bound to async task. You can bind the button click event with async task handler. In the following example, the button click event bound to async method.
How to implement a cascading dropdown menu using InputSelect in Blazor?
In the cascading DropDown menu, the value of first DropDown list depends on the value of the second DropDownList. In the following example, a country is selected from the countries dropdown menu, and respective states will be loaded in the state dropdown menu.
How do I force page reload or refresh in Blazor?
A page is reloaded/refreshed automatically at a specified interval using “NavigationManager” in OnAfterRender() method. Here the NavigateTo(“url”, forceLoad: true) method, is used to force load the browser based on the URI.