How to change CSS Runtime (asp.net 2.0)

  • Thread starter Thread starter pinsoftek
  • Start date Start date
P

pinsoftek

Hello Friends,


I would like to change CSS Runtime. How to achieve this.

Thanks in advance.
Pin
 
Thanks for your reply,

for example :

I have set style.css when first page load.

after user select another color from combo box.

I would like to load style2.css.

Is it possible.

Pin
 
Thanks a lot,

My problem solved.

Pin


HtmlLink objCSS = new HtmlLink();
objCSS.Attributes.Add("href", "style2.css");
objCSS.Attributes.Add("rel", "stylesheet");
objCSS.Attributes.Add("type", "text/css");
Header.Controls.Add(objCSS);
 
Back
Top