473,574 Members | 2,623 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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


"Eje" <an*******@disc ussions.microso ft.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2456
by: PT | last post by:
I got a form with many text boxes, checkboxes and 3 drop downs. From that 3, 2 are dependant. I can choose one drop down, and the next drop down should display the dependant values of the first drop down chosed. And I have a submite button to submit all these values to DB. First problem: I cant keep the value of the selected text in the...
6
2451
by: Marek Mänd | last post by:
I searched google but couldnt find ant decent code for dependant comboboxes script (where the combo values in other combo depend upon the selections in the first combobox). The problem is that most of the scripts are 2 level dependant comoboboxes, I would like to have a 3 level dependant comboboxes. Can somebody suggest me where to get...
1
2508
by: edt | last post by:
Is it possible to identify the user (i.e. username) in an intranet (local area network) environment using php? I would like to develop an intranet website with user-dependant information with php and MySQL. In a local area network I know its possible. I have used this with OS: windows and ACCESS. Thanks in advance. Ed van der Mark
1
999
by: Bobofrut | last post by:
hi All is there any possibility to run main page Page_Load event from user control ?? or get access from this control to any public page properties thnks in advance.. Chris
5
1605
by: Gopal Krish | last post by:
Wondering what's the pros and cons in creating reusable web controls using 1. User Controls 2. C# class that creates the controls programmatically Example, I want to develop a page menu (Reset, Back, Submit etc) that I can reuse in all my screens. Reset and Back are Hyperlinks and Submit is
6
3359
by: Steve Booth | last post by:
I have a web form with a button and a placeholder, the button adds a user control to the placeholder (and removes any existing controls). The user control contains a single button. I have done all the usual stuff of recreating the usercontrol in the Page Init event. The 'failure' sequence is as follows: - select web form button to display...
24
1895
by: Rob R. Ainscough | last post by:
VS 2005 I have: ClickOnce deployment User's that hate and or don't want to use an IE Client (don't blame them) I don't see how ASPX web pages are going to survive? With .NET 2.0 and clickonce deployment my app is 427KB (even with modem dialup speed it doesn't take long to download) -- the user gets a very friendly secure WindowsForm app...
1
318
by: Jonathan Wood | last post by:
Okay, as evidenced by other questions, I am an experienced programmer very new to ASP.NET. I have a vertical navigation bar. It is all one color with several panels inside it with a different color. It looks okay but I'm wondering if each of these several panels should be Web User Controls themselves. I think this would make sense, and I...
8
1566
by: Good Man | last post by:
Hi there I was wondering if someone could help me out with the following two situations. In a lot of my web apps, it seems that if i launch a PHP script that takes a long time to complete, the user is unable to browse/use the rest of the website until the tasks completes. Is there a way to avoid this? Specifically, app #1 let's a user...
2
1856
by: tshad | last post by:
User VS 2003, I would like to use User Controls to control the page look with 3 User Controls (...PageTop.ascx, ...NavigateTop.ascx and PageBottom.ascx). I would put the Content User control between the NavigateTop and PageBottom User controls. These files be something like: sdhcPageTop.ascx, ft2PageTop.ascx, sbPageTop.ascx,...
0
7737
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8075
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7827
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8109
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5632
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5316
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3752
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2253
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.