Forum Moderators: open

Message Too Old, No Replies

Client side events from Asp.Net Server Controls

Client side events from Asp.Net Server Controls

         

hkpanda

10:41 am on Jul 23, 2003 (gmt 0)

10+ Year Member



Hello!

I'm working in ASP.Net and I have this following doubt.

I have a server side button that fires some server side events when clicked. Additionally, it should then fire client side event like closing the window, for example.

I am able to achieve either one of these (i.e. server side or client side) but not both of them.

Can anybody help?

Thanx in advance!

korkus2000

7:43 pm on Jul 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you found anymore information on this? It is the reason I have stuck with regular elements in .Net.

hkpanda

2:42 am on Jul 30, 2003 (gmt 0)

10+ Year Member



I have found out few solutions since then.

If you are interested, contact me via email.

sharbel

6:33 pm on Jul 30, 2003 (gmt 0)

10+ Year Member



There shouldnt be a problem with adding client side scripting to the button at all.. you can use the Attributes object to add client side functions easily. Also, you can use the RegisterClientScriptBlock method of the Page object to insert scripts.

If you are still having problems, maybe post some code we I can give you a hand.