Cancelling postback of ImageButton

B

Brian Fulford

I have an imagebutton that calls a javascript function that reads from a
grid and opens a new window... how can I cancel the postback event so that
the grid does not requery every time?
 
J

Jim

From the function,
return false;

In your onclick event, you can then say:
onclick="javascript: return myFunction();"

HTH
 
B

Brian Fulford

Ahhhh so simple I didnt even consider that!

Jim said:
From the function,
return false;

In your onclick event, you can then say:
onclick="javascript: return myFunction();"

HTH
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top