I am adding a css class to my aspx page from c# code behind. here's how I am going around
public void OnPreRenderComplete(EventArgs e)
{
Page.Header.Controls.Add(new LiteralControl("<link rel=\"stylesheet\" type=\"text/css\" href=\"/Content/Css/Edit.css"+"\" />"));
}
The code is working as expected. Now the thing is that I DO NOT want to use literal control to add the class if possible. Is there a way around to do the same without using literal control?