Home » FAQ » ASP.NET » Client Side Scripting » How can you avoid postback on submit button?
The postback on submit button can be avoided by giving return=false in the event handler function as below.
<INPUT type='submit' value='Submit' onclick='return false;'>
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with