"loga123" <vd**********@covansys.com> wrote in message
news:11**********************@g10g2000cwb.googlegr oups.com...
I have a web page where I would like to do certain activities when user
click's a button.
I have used button web control on my page. Each time, I click this
button....page gets posted.
I don't want my page to do "post-back" when i click on button web
control.
is there any way to accomplish this?
Can anyone help me in this regard?
If you don't want your button to postback, that is presumably because it can
achieve everything it needs to do client-side i.e. with JavaScript...?
In which case, don't use an <asp:Button> control at all - simply use an HTML
button e.g.
<input type=button id=cmdHello value="Hello" onclick="alert('Hello');">