Thanks sir you are the first Indian who giving so well info about blazor 8 , sir I want to know how to get Form get value as you give examble of Form post
Hi Amit! Thanks for your comment. To get the value from the form input, you can do the following (See below for the entire code): In the @code block, define a public string property called "MyInput", and decorate it with the [SupplyParameterFromForm] attribute. Then, create a private async method called OnFormSubmit that returns a Task. Inside this method, you can access the MyInput value, and use it. Now, define an @onsubmit attribute for the form element and set it to "OnFormSubmit". For the input element inside, set the name attribute to "MyInput", id attribute to "MyInput" and @bind attribute to "MyInput". Also, for the current .NET 8 RC 2, make sure you type and enter "install-package Microsoft.Net.Compilers.Razor.Toolset -pre" in the Package manager Console. Otherwise, you will get an error.
Submit @code{ [SupplyParameterFromForm] public string MyInput { get; set; } private async Task OnFormSubmit() { // Access MyInput here } } Note: Make sure in the Package Manager Console, you use "install-package Microsoft.Net.Compilers.Razor.Toolset -pre". Hope that helps!
@@codeganesh thanks for quick response sir this page is called by outside from my application by third party vendor (payment gateway) and they are passing some encrypted value that i want to receive and decrypt my question is how to get this value on my server razor page oninitilizeasync method
Best presentation ever for render modes , interactivity.. Thank you..
Thank you so much Muthu.
I would say this is by far the best .Net8 video with great explanations. Thank you so much!
Glad the video was helpful. You're welcome!
Best presentation of .NET 8 new feature. Thanks.
Thanks Mihai! You're welcome!
Great tutorial, I'm very pleased. A very good teacher
Hi Jonas! Thanks for your comment. Glad you liked my content. Thanks once again.
I started watching your videos to learn about new .NET 8 features, better than reading msdn.
Glad you found the content useful. Thanks for watching.
It really is an excellent course. Very concrete and clear.
Thank you so much! Glad you found it helpful.
this is very clear and well made, thanks!
Thank you so much. Glad the video was helpful. You're welcome!
Very informative video with lots of examples. Thank you for your hard work!
Glad the video was helpful. You're welcome!
this is insanely condensed. great video
Thanks for your comment. Appreciate it!
Amazing collection, Thank you!
Thanks Prajwal! You're welcome!
so useful, thank you my friend!
Glad you liked it bro. You’re welcome!
Thanks sir you are the first Indian who giving so well info about blazor 8 , sir I want to know how to get Form get value as you give examble of Form post
Hi Amit! Thanks for your comment. To get the value from the form input, you can do the following (See below for the entire code): In the @code block, define a public string property called "MyInput", and decorate it with the [SupplyParameterFromForm] attribute. Then, create a private async method called OnFormSubmit that returns a Task. Inside this method, you can access the MyInput value, and use it. Now, define an @onsubmit attribute for the form element and set it to "OnFormSubmit". For the input element inside, set the name attribute to "MyInput", id attribute to "MyInput" and @bind attribute to "MyInput". Also, for the current .NET 8 RC 2, make sure you type and enter "install-package Microsoft.Net.Compilers.Razor.Toolset -pre" in the Package manager Console. Otherwise, you will get an error.
Submit
@code{
[SupplyParameterFromForm]
public string MyInput { get; set; }
private async Task OnFormSubmit()
{
// Access MyInput here
}
}
Note: Make sure in the Package Manager Console, you use "install-package Microsoft.Net.Compilers.Razor.Toolset -pre".
Hope that helps!
@@codeganesh thanks for quick response sir this page is called by outside from my application by third party vendor (payment gateway) and they are passing some encrypted value that i want to receive and decrypt my question is how to get this value on my server razor page oninitilizeasync method
Sir, could you please share with us more content about dot net 8?