pass CSS to page and launch it

J

jjfjr

Hi;

I'd like to know if there is any way that I can pass and external cascading
style sheet to a page and launch it that when I view it in the browser, it
obeys the statements in the stylesheet that was passed to it.

For example, I have a page called db_access which displays a form that
accepts a username and password which are used to construct a SQL statement
to extract the stylesheet name associated with the particular user from an MS
Access database. This database has three records (one for each user) and each
record consists of a username, password and stylesheet name. When Tom logs in
the stylesheet tom.css that is associated with Tom via his record is
extracted.

How can I pass this stylesheet name to another webpage and launch it so
that the page will have the appearance dictated by the stylesheet?

Any help is greatly appreciated.

JJFJR
 
M

Murray

Pass it in the URL, e.g.,

<a href="nextpage.asp?styles=<% thestylesheetfield %>"

and link it on the next page, e.g.,

<link rel="stylesheet" type="text/css" href="/styles/<%=
request.querystring(styles) %>" media="screen">
 

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

Top