User dependant css

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Eje

    User dependant css

    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
  • Dave Anderson

    #2
    Re: User dependant css

    Eje wrote:[color=blue]
    > 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.[/color]

    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("Co mpany").Item) {
    case "A" : Response.Redire ct("Company_A.c ss"); break
    ...
    default : Response.Redire ct("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.


    Comment

    • John

      #3
      Re: User dependant css


      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=""styleshee t"" type=""text/css"" href=" &
      session("css") & ">" & vbCrLf






      "Eje" <anonymous@disc ussions.microso ft.com> schreef in bericht
      news:182a01c4ab 2a$ed40ce80$350 1280a@phx.gbl.. .[color=blue]
      >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[/color]


      Comment

      • John

        #4
        Re: User dependant css

        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



        Comment

        • Guest's Avatar

          #5
          User dependant css

          John and Dave,

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

          Eje[color=blue]
          >-----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[/color]
          pages[color=blue]
          >by changing logo and i.e. backcolor depending on[/color]
          company.[color=blue]
          >A person from company A will see his company's logo and
          >colors and a person from company B will simultanously[/color]
          see[color=blue]
          >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
          >.
          >[/color]

          Comment

          Working...