System.Web.UI.HtmlControls.HtmlGenericControl myStyleCss = new System.Web.UI.HtmlControls.HtmlGenericControl("link");
myStyleCss.Attributes.Add("href", "mystyle");
this.Page.Header.Controls.Add(myStyleCss);
This is what I would like to accomplish programatically in C# is to add the content of the css without referencing the link of the stylesheet.css as followed/
System.Web.UI.HtmlControls.HtmlGenericControl myStyleCss = new System.Web.UI.HtmlControls.HtmlGenericControl("style");
myStyleCss.Attributes.Add("type", "text/css");
body {margin: 0px;}
input {font-size: 10pt;}
#div.tag {vertical-align: middle;}
this.Page.Header.Controls.Add(myStyleCss);
Any Idea How to?
TIA