469,328 Members | 1,253 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,328 developers. It's quick & easy.

User dependant css

Eje
I am developing a webapplication for a company holding
stocks for a number of customer companies. The customers
can order parts via this new appliction. My application
is linked to each of the customers' home pages. I want
each user to 'believe' he still is in his company's pages
by changing logo and i.e. backcolor depending on company.
A person from company A will see his company's logo and
colors and a person from company B will simultanously see
his company's logo and colors. Can I achieve this with
css. In that case How? Or is there another better method.

Hope you can help me.

Eje
Jul 19 '05 #1
4 1244
Eje wrote:
I am developing a webapplication for a company holding
stocks for a number of customer companies. The customers
can order parts via this new appliction. My application
is linked to each of the customers' home pages. I want
each user to 'believe' he still is in his company's pages
by changing logo and i.e. backcolor depending on company.
A person from company A will see his company's logo and
colors and a person from company B will simultanously see
his company's logo and colors. Can I achieve this with
css. In that case How? Or is there another better method.


It is certainly possible to do this:

<LINK REL="stylesheet"
TYPE="text/css"
HREF="myCSS.asp?Company=A">

Your script could either assign the CSS on the fly or redirect to a static
version:

[JScript example of redirection]
switch(Request.QueryString("Company").Item) {
case "A" : Response.Redirect("Company_A.css"); break
...
default : Response.Redirect("Default.css")
}
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #2

I presume every company have a ID, i use for my application the VAT number.
I a folder a place all the .css files and when starting the application i
load the corresponding filename into a session variable and then use it in
every page as below

Response.Write "<link rel=""stylesheet"" type=""text/css"" href=" &
session("css") & ">" & vbCrLf


"Eje" <an*******@discussions.microsoft.com> schreef in bericht
news:18****************************@phx.gbl...
I am developing a webapplication for a company holding
stocks for a number of customer companies. The customers
can order parts via this new appliction. My application
is linked to each of the customers' home pages. I want
each user to 'believe' he still is in his company's pages
by changing logo and i.e. backcolor depending on company.
A person from company A will see his company's logo and
colors and a person from company B will simultanously see
his company's logo and colors. Can I achieve this with
css. In that case How? Or is there another better method.

Hope you can help me.

Eje

Jul 19 '05 #3
Exemple
company 1 : vat nr 123456789, the css file is /css/123456789.css
company 2 : vat nr 826242656, the css file is /css/826242656.css

so the session variable will be for the second company: /css/826242656.css

Jul 19 '05 #4
John and Dave,

Thanks for your help. I understand the meaning and will
use your suggestions.

Eje
-----Original Message-----
I am developing a webapplication for a company holding
stocks for a number of customer companies. The customers
can order parts via this new appliction. My application
is linked to each of the customers' home pages. I want
each user to 'believe' he still is in his company's pagesby changing logo and i.e. backcolor depending on company.A person from company A will see his company's logo and
colors and a person from company B will simultanously seehis company's logo and colors. Can I achieve this with
css. In that case How? Or is there another better method.

Hope you can help me.

Eje
.

Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Marek Mänd | last post: by
1 post views Thread by edt | last post: by
1 post views Thread by Bobofrut | last post: by
5 posts views Thread by Gopal Krish | last post: by
24 posts views Thread by Rob R. Ainscough | last post: by
1 post views Thread by Jonathan Wood | last post: by
2 posts views Thread by tshad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.