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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top