N
Nathan Sokalski
I want to create a Button that does not do a postback (I simply want to use
it for JavaScript). Some of the ways I know of to do this are:
1. Include "return false;" in the OnClientClick property. However, if
UseSubmitBehavior is set to True, it is type="submit", and if
UseSubmitBehavior is set to False, onclick still includes __doPostBack even
though it doesn't get called
2. Use an HtmlButton control. However, I would like to be able to use a
Button control.
Are there any ways to create a Button that does not do a postback? Thanks.
it for JavaScript). Some of the ways I know of to do this are:
1. Include "return false;" in the OnClientClick property. However, if
UseSubmitBehavior is set to True, it is type="submit", and if
UseSubmitBehavior is set to False, onclick still includes __doPostBack even
though it doesn't get called
2. Use an HtmlButton control. However, I would like to be able to use a
Button control.
Are there any ways to create a Button that does not do a postback? Thanks.