The HTML Element Information is set in masterpage and can be applied to all pages using masterpage. in practice, not all pages use the same things, such as <link>, title <title>, and meta information <meta> in CSS files.
The HTML server control can be used to set the HTML information of pages using masterpage. This method is used in the default page of dotnetnuke.
The following is a simple example:
Dim Keywordshtmlmeta As New Htmlmeta
Keywordshtmlmeta. Name= "Keywords"
Keywordshtmlmeta. Content= "ASP. NET, blog, cnblogs, rippleyong"
Page. header. Controls. Add (keywordshtmlmeta)
DimCsshtmllinkAs NewHtmllink
Csshtmllink. href = " ~ /Style.css "
Csshtmllink. Attributes. Add ( " REL " , " Stylesheet " )
Csshtmllink. Attributes. Add ( " Type " , " Text/CSS " )
Csshtmllink. Attributes. Add ( " Media " , " All " )
Page. header. Controls. Add (csshtmllink)
More examples of setting head markers
Sue's edreams.org post
More HTML server controls:
HTML Server Control