N
~~~ .NET Ed ~~~
Well the subject says it all but I am going to elaborate a bit.
As we all now since 2.0 it is possible to access the Header from code behind
without much wizardry and that is a good thing.
Now, in my site I am using master pages and one of the site pages (but could
be more) needs certain customization in which the BODY tag needs the onLoad
and onUnload events added to it:
[body onload="load()" onunload="GEUnload()"]
I don't want to add that to the master page because of just a few pages. I
would like to be able to do that programmatically without having to create a
shadow master page that would have these attributes.
I tried putting the id and runat attributes to the BODY tag on the master
page but that did not work out because ASP.NET changes the ID of BODY to
something like ct100_body rather than the one I gave.
Can anybody point me to a good solution?
As we all now since 2.0 it is possible to access the Header from code behind
without much wizardry and that is a good thing.
Now, in my site I am using master pages and one of the site pages (but could
be more) needs certain customization in which the BODY tag needs the onLoad
and onUnload events added to it:
[body onload="load()" onunload="GEUnload()"]
I don't want to add that to the master page because of just a few pages. I
would like to be able to do that programmatically without having to create a
shadow master page that would have these attributes.
I tried putting the id and runat attributes to the BODY tag on the master
page but that did not work out because ASP.NET changes the ID of BODY to
something like ct100_body rather than the one I gave.
Can anybody point me to a good solution?