void AddSmallGridCSS ()
{
HtmlLink link = new HtmlLink ();
link.Href = "~/App_Themes/" + Page.Theme + "/mystylesheet.css";
link.Attributes.Add ( "type", "text/css" );
link.Attributes.Add ( "rel", "stylesheet" );
Page.Header.Controls.Add ( link );
}
You don't have to use app themes, the file can be in any directory.
No comments:
Post a Comment