Home All Groups Group Topic Archive Search About

Changing the Background Color



Author
5 Apr 2006 4:16 PM
Glenn Hanna
Hi, I would like to know how to change the background color of a web form
programatically from C#.  I have found examples on the web for Visual Basic,
but I can't get them to work in C#.  Any help would be appreciated.

Thank you,
Glenn

Author
5 Apr 2006 6:09 PM
Bob Barrows [MVP]
Glenn Hanna wrote:
> Hi, I would like to know how to change the background color of a web
> form programatically from C#.  I have found examples on the web for
> Visual Basic, but I can't get them to work in C#.  Any help would be
> appreciated.
>
Canned reply:
There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-knowledgeable person here who
can answer your question, you can eliminate the luck factor by posting your
question to a group where those dotnet-knowledgeable people hang out. I
suggest microsoft.public.dotnet.framework.aspnet.

This is a CSS issue, not a VB.Net/C# issue. That means the samples you
found, which probably modify the css attributes of a page, should work
regardless of the language being used to set those properties.
Post what you've tried to the aspnet group.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

AddThis Social Bookmark Button