Link to home
Start Free TrialLog in
Avatar of Kevin Robinson
Kevin Robinson

asked on

Server Side Control to call javascript

How do I call javascript from a server side event.

For example if a user ticks a checkbox, rather than running some server code it runs javscript instead.
Avatar of Fahad Mukhtar
Fahad Mukhtar
Flag of Pakistan image

CheckBox1.Attributes.Add("OnClick", "alert('Client side code');")
ASKER CERTIFIED SOLUTION
Avatar of HouseMusic
HouseMusic

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Kevin Robinson
Kevin Robinson

ASKER

Yes you are right. Doh!

"If a user ticks a checkbox, thats a client side event, not a server side one "