Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Body from Code Behind
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01145622
Message ID:
01145660
Views:
16
>Does anyone know how to access the HTML BODY from the code behind? I want to change the CSS class of the BODY in my page load event.

Yes it is possible to do from the server. I have not done it so I don't have sample code ready made but you can do it through JavaScript, or by using DIV sections or you can look at http://www.csszengarden.com/ and see how they change whole pages by just changing the style and keeping the content.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform