Number of ways:
1. in ur page_onload add following code ... 
a. ImageButtonName.Attributes.Add ("onclick", "return functionname();")
b. Functionname() is a js function that performs your validation and finally
if it decides, it returns false which stops the page to submit
2. You can also use Page.RegisterOnSubmit etc to emit client side script in
the page which you can use to decide whether or not to submit the page 

Hth ...
Rahul


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 1:14 PM
To: dotnet
Subject: client side event handling for server side control

What I would like to do is when a user clicks on my
asp:imagebutton control, have client side code catch the
event (onmouseup, perhaps) and then have the logic of
that handler determine whether or not to call the server
side onclick event handler.

Does anyone know how to do this?

Thanks

---
You are currently subscribed to dotnet as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/

---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to