Library tutorials & articles
Creating Dynamic Style Sheets Using ASP
- Introduction
- Browser Detection
- Generating the CSS
- IE 6
Introduction
Many people forget that ASP isn't just for making dynamic HTML pages. ASP can be used to create pages of all kinds, or even binary data, like images. Some examples have used XML, audio playlists, text files, GIFs, and JPGs - literally anything with a MIME type that he browser recognizes.
The code needed to make this happen is really quite simple. It takes only one line to change the HTTP header to produce a different MIME type, and thus force the web browser to interpret the file differently. One application for this ability is to create a style sheet using ASP.
Response.ContentType = "text/css"
Related articles
Related discussion
-
Binary Studio | software development outsourcing Ukraine
by Soft Industry (5 replies)
-
asp Request.QueryString("dir")
by realmeteo (1 replies)
-
Looking for Senior Web Designer
by lwsmedia (0 replies)
-
Read eMails from Outlook express using ASP
by kumaravelu (1 replies)
-
Help to Call ASP function from onclick event in HTML to pass an array
by vka (0 replies)
Related podcasts
-
Scott Guthrie
Scott catches up with Scott Guthrie in an interview covering Ajax, Asp 2.0, extender controls, CSS adapters and more.
There is also a very simple service one can use for browser detection. It's a service, so it's always up to date with the latest browsers. To take a peek, check out http://www.whatsthatbrowser.com
This thread is for discussions of Creating Dynamic Style Sheets Using ASP.