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