|
-
May 14th, 2008, 12:41 AM
#1
Thread Starter
Addicted Member
How create cascade style sheet file dynamically
Hi
If we want to add css file, go to > add new item in menu and select css file in our .Net application. But i want to create css file dynamically using coding. Is it possible?? If we can create xml file dynamically we use xmlTextwriter. This much
can possible for css file to create dynamically.I hope for ur's reply.
Thanks
Failing to plan is Planning to fail 
-
May 14th, 2008, 02:12 AM
#2
Re: How create cascade style sheet file dynamically
It depends on how you want to use it. You can use System.Io namespace to create files. CSS files are nothing but text files with a .css extension. You can then add a reference to it in your pages.
However, if you always want to generate the CSS dynamically - that is, not write it to disk as it may always be changing - you'd use an HttpHandler.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|