Thnx Karl for your support,
This works fine.
Stupid of me not to think of it this way.
Thnx again
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> schreef in bericht news:e%****************@TK2MSFTNGP09.phx.gbl...
RJ:
Stick on ID on the body with a runat="server" declare it as an HtmlControls.HtmlGenericControl
and then you can do
control.Attributes.Add("Class", "YourClass")
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"RJDev" <rj*******@hotmail.com> wrote in message news:ed**************@TK2MSFTNGP12.phx.gbl...
Hi,
I want to switch some info in the Codebehind page.
Everything is working but one thing.
I need to set the classname of the body at the page load.
I cannot find on how to do this from the code behind page.
Normaly i take the protectec System.Web.UI.HtmlControls. ..... Controls or other controls and this works fine.
But now one more step on doing this on the body tag and i am very much helped.
Regards,
RJ