stop postback on image button runat server onclick event

Posted by Rajarbind under ASP.NET on 4/3/2008 | Views : 10138 | Status : [Member] | Replies : 1
Hi,
I am using cellsetgrid user control .when i want to click on image button page is getting reloaded.I used ajax also but my cellsetgrid user control height is not getting reduce. so I am using image button runat server side but page is reloading.so i want to stop posting on click event.

thanks,
Arbind




Responses

Posted by: Raja on: 4/3/2008 [Member] Starter

Up
0
Down
If I understood your question corretly you want to avoid postback.

Instead of using asp:ImageButton use asp:Image or better use <img> tag of HTML. If you don't want to attach any the server side event never use any ASP.NET Server Controls like asp:Button or asp:ImageButton.

Thanks

Regards,
Raja, USA

Rajarbind, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response