How to change CSS Runtime (asp.net 2.0)

P

pinsoftek

Hello Friends,


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

Thanks in advance.
Pin
 
P

pinsoftek

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
 
P

pinsoftek

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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,059
Latest member
cryptoseoagencies

Latest Threads

Top