Click here to Skip to main content
14,242,734 members
Rate this:
Please Sign up or sign in to vote.
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

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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!

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100