By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,894 Members | 1,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,894 IT Pros & Developers. It's quick & easy.

Javascript on servecontrol

P: n/a
How do I run a javascript on a servercontrol (button). (It has to be a
servercontrol, because I am using CultureInfo on the button)
regards
Rehiaa
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can add the attribute at page rendering time from the code-behind.

myServerButton.Attributes ["onclick"] = "alert('Client onclick event');";

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"rehiaa" <th******@online.no> wrote in message
news:u0*************@TK2MSFTNGP10.phx.gbl...
How do I run a javascript on a servercontrol (button). (It has to be a
servercontrol, because I am using CultureInfo on the button)
regards
Rehiaa

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.