adding data to html control

  • Thread starter Thread starter David
  • Start date Start date
D

David

after having finally been able to catch an instance of the <head> in my code
behind file
protected HtmlHead myHeader;

I found out I'm too much of a c# newbie to figure out how to start putting
some data into the header. I can add meta tags with HtmlGenericControl but
how to add data like <link/> ??
 
Hi,

1)HTTPHeader isn't .NET class. it's part of (element) in SharePoint SDK.

2) To add items to header you should give head tag ID and runat="server"
attribute. then you can add controls (literal, HtmlGenericControl ... ).

3) I cant see why to add HTML controls to header and not to HTML body
... I'll be happy if you can explain why.

Natty Gur[MVP]

blog : http://weblogs.asp.net/ngur
Mobile: +972-(0)52-8888377


*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
thx!

1) hmmm... guess I've got some more reading to do!
2) tried that but I wanted to do it without having to put a control in every
..aspx file
3) because I'm adding <link ..> for CSS styles, <script...> for Javascript
etc... they should belong to the header
 
Back
Top