T
tshad
In VS 2005,
I need to get access to the body tag which I have set up on my Master Page
as:
<body ID="MyBody" runat="server">
But when do something like:
MyBody.Attribute.Add("onload","GetAccounts()");
But I get:
Error 1 The name 'MyBody' does not exist in the current context
I also tried Page.MyBody, but that doesn't work either.
How can I put attributes on the body tag from a child page or control?
Thanks,
Tom
I need to get access to the body tag which I have set up on my Master Page
as:
<body ID="MyBody" runat="server">
But when do something like:
MyBody.Attribute.Add("onload","GetAccounts()");
But I get:
Error 1 The name 'MyBody' does not exist in the current context
I also tried Page.MyBody, but that doesn't work either.
How can I put attributes on the body tag from a child page or control?
Thanks,
Tom