On May 21, 11:51 am, "Kees de Winter" <nos...@nospam.orgwrote:
In an ASP.NET 2.0 application using masterpages, how can I add a 'load' and
'unload' JavaScript function to the body tag for some aspx page that uses
the masterpage. I don't want to add it to the masterpage because it's just
for one page.
I think something like this
1. Turn <bodyinto a server side control
<body runat="server" id="body">
2. Add a public method
public void SetBodyOnLoad()
{
body.Attributes("onload") = "javascript
:....";
}
3. Call that method from the content page