my stylesheet is ;
.rsAptContent{ background-color: transparent !important; margin: 5px !important;}
is it possible creating like this in code behind ?
my stylesheet is ;
.rsAptContent{ background-color: transparent !important; margin: 5px !important;}
is it possible creating like this in code behind ?
Its a little hard to understand your question as it is not well formed, but im giving it a go, here is several possible solutions that might fit your question.
If you want to read out the css file to a textbox do this
//To read/load the file
Output = File.ReadAllText(Server.MapPath(Request.ApplicationPath) + "StylesheetPath.css");
//To write/save the file
File.WriteAllText(Server.MapPath(Request.ApplicationPath) + "StylesheetPath.css", Input);
If you want to write the css on you page dynamically on each pageload you can do this.
string styles = ".rsAptContent{ background-color: transparent !important; margin: 5px !important;}"
HeaderID.InnerText = "<style>"+styles+"</style>";
I would not recommend doing this, at it will steal the CPU at each load, its better to change between several static stylesheet's like this
string stylesheet = @"\style1.css";
Head1.InnerText = "<link href=\"" + stylesheet + "\" rel=\"stylesheet\" type=\"text/css\" />";