how can a post-back be prevented for a button?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

my web page consists of a timer along with a number of buttons ( application
for tambola game). the timer raises an event on it's expiry time. that is
fine. but i doun't what some of the buttons to throw the post-back(refreshing
of page every time). i need only the page to refresh only when the timer
expires. but not for the (some) button clicks.

this web application is developed in asp.net present version.
 
On of the solutions can be declaring buttons that do not need to throw
postback as client ones ( do not write runat="server" ) and then control
everything from js on the client-side.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top