Wednesday, October 8, 2014

How do I decorate a web forms HTML tag already decorated with runat="server" with an onload event?

Like so from the C# side:

IFrame.Attributes.Add("onload", "compensateIfFormFailsToLoad()");

 
 

...or like so:

IFrame.Attributes["onload"] = "compensateIfFormFailsToLoad()";

No comments:

Post a Comment