Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Add an attribute to the tag <body>?

Thread Tools

Add an attribute to the tag <body>?

Mark Rae
Posts: n/a
"Gustavo Arriola" <(E-Mail Removed)> wrote in message
news:%23fHcJdS$(E-Mail Removed)...

> In ASP.NET 2.0:
> How I add an attribute to the tag <body> in Codebehind?

Same as with any other HTML tag...

<body id="MyBodyTag" runat="server>

MyBodyTag.Attributes.Add(......, ......);

Reply With Quote
Gustavo Arriola
Posts: n/a

In ASP.NET 2.0:
How I add an attribute to the tag <body> in Codebehind?

From already thank you very much!
Gustavo Arriola

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
In the code behind: how to add a background attribute to the body tag. _Who ASP .Net 4 09-23-2008 08:41 PM
picking value of one attribute based on a child elements attribute? XPath? XML 2 03-06-2006 05:19 AM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
XSLT: Making attribute to parent attribute Bostonasian XML 1 09-18-2005 07:30 AM
Add readonly attribute dynamically to input tag Javascript 2 06-30-2005 02:38 PM