T
Tim Royal
I know that programmatically, one can add attributes for controls that will
be passed down to the client in html. Example:
servercontrol1.attributes.add("onclick", "javascript:flyhome()").
My question is, can this be done declaratively? I'd prefer not to have to
add code to each of the controls I want to add client side javascript
attributes for.
<servercontrol id="duh" onclick="javascript:flyhome()">
Thanks. This is for ASP.NET 2.0, btw.
Tim
be passed down to the client in html. Example:
servercontrol1.attributes.add("onclick", "javascript:flyhome()").
My question is, can this be done declaratively? I'd prefer not to have to
add code to each of the controls I want to add client side javascript
attributes for.
<servercontrol id="duh" onclick="javascript:flyhome()">
Thanks. This is for ASP.NET 2.0, btw.
Tim