Web Server PostBack

P

paul

Is there a way to make a server control NOT postback on an event(ie click).
For example, I have an image server control <asp:imagebutton> that I want to
perform a client side action on a click event.
I can do that easily, however, after the client side action takes place a
server side post is also done. I thought there was some sort of AutoPostBack
property but can't find it. I'm assuming there should be a way.

thanks
paul
 
K

Konrad Rotuski

<img src="" onclick='return somefunc()' />

in somefunc :

function somefunc() {
// do stuff here
....


return false;
}

thats all
 

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

Members online

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,999
Latest member
MakersCBDGummiesReview

Latest Threads

Top