Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Body Tag

  Asked By: Erica    Date: Dec 28    Category: Asp.net    Views: 663
  

does anybody knows how to add attributes to the <body> tag from a
web user control?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Vidos Fischer     Answered On: Dec 28

Give the body  tag an id="SomeId", and a runat="server" attribute. In
codebehind:


Protected SomeID as HTMLGenericControl

SomeID.Attributes.Add("name","value)

 
Didn't find what you were looking for? Find more on Body Tag Or get search suggestion and latest updates.




Tagged: