Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi when i click the button, the page is postback and the click event is also fired for button, for the other control like textbox i'm giving the autopostback true, then only it gets postback and event fire.. But The button control is automatically get postback it has which special property to get the postback and event fire
Posted

1 solution

In ASP.NET by default button with runat="server" is postback enabled. However, for disabling postback you need to write OnClientClick="return false;" on the button.

Hope this help!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900