Dim loControlGenericControl As System.Web.UI.HtmlControls.HtmlGenericControl = New System.Web.UI.HtmlControls.HtmlGenericControl() loControlGenericControl = oProcess.oPage.FindControl("Body") loControlGenericControl.Attributes.Add("onload", "LXCheckAlert2()")I have the body defined as:
<body runat="server" id="Body">However, at run time, this doesn't generate any error but nothing gets added to the BODY tag.