G
GaryDean
I need to be able to change the background color of a page from code. I
found an answer to this question in another forum from Peter Huang that said
that an id="bg" as follows...
<body MS_POSITIONING="GridLayout" runat="server" id="bg">
then we could do the following in our codebehind file....
Private Sub Page_Load(sender As Object, e As System.EventArgs)
bg.Attributes.Add("BgColor", "#ff9933")
End Sub
However, I get the errror that bg is Private.
Is there a solution to this issue where bgcolor, and other attributes of the
document can be changed from codebehind code?
found an answer to this question in another forum from Peter Huang that said
that an id="bg" as follows...
<body MS_POSITIONING="GridLayout" runat="server" id="bg">
then we could do the following in our codebehind file....
Private Sub Page_Load(sender As Object, e As System.EventArgs)
bg.Attributes.Add("BgColor", "#ff9933")
End Sub
However, I get the errror that bg is Private.
Is there a solution to this issue where bgcolor, and other attributes of the
document can be changed from codebehind code?