C
Chris Millar
wondered if anyone could help me - i'm trying to control the value of an
attribute of the BODY tag on a page. So i've got:
<html>
<body test="colin">
<form ......
** content **
</form>
</body>
</html>
I want to affect the value of the 'test' attribute from the code-behind
file.
I've tried setting up the body tag as a server control (e.g. <body id="fred"
runat="server" test="colin">) and adding in a protected var in the
codebehind like this:
protected System.Web.UI.HtmlControls.HtmlGenericControl mainbody;
... but it throws an exception somewhere deep down in the .net libraries
before it runs any of my code. Anyone got any ideas about how I could do
this?
attribute of the BODY tag on a page. So i've got:
<html>
<body test="colin">
<form ......
** content **
</form>
</body>
</html>
I want to affect the value of the 'test' attribute from the code-behind
file.
I've tried setting up the body tag as a server control (e.g. <body id="fred"
runat="server" test="colin">) and adding in a protected var in the
codebehind like this:
protected System.Web.UI.HtmlControls.HtmlGenericControl mainbody;
... but it throws an exception somewhere deep down in the .net libraries
before it runs any of my code. Anyone got any ideas about how I could do
this?