Have just picked this up again.
I am trying this but no joy as yet. For a start, attributes is not a member of the control class so it doesn't compile. The following compiles but doesnt find the body element.
Dim cBody As HtmlGenericControl = Me.Page.Master.FindControl
cBody.Attributes.Add("onlo
have set the body in the master to "runat=server" and id to "bodyRpMaster"
I have put all this in the page load event.
Am wondering what to do next
Main Topics
Browse All Topics





by: lem2802Posted on 2008-06-18 at 06:16:17ID: 21812475
you can set runat="server" in the body tag into the maseter page... an set the onload event by each page...
ster").Att ributes.Ad d("onload" , "someJavavScript");
<body runat="server" id="bodyMaster">
and for each page where you want to set the body onload event...
Master.FindControl("bodyMa