| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a website that many resellers use to sell their goods. How do I get a master website to change company logo/contact details etc when my reseller and their contact view the website when linking from their web site?
Ie showing the resellers logo and contact details but keeping the products etc the same. Can anyone help? |
|
#2
|
|||
|
|||
|
You could do it with ASP using either a variable passed in the link or simply detecting the referer, for example:
Code:
if Request.ServerVariables("HTTP_REFERER") = "http://www.clienta.com" then
session("referer")= "clientA"
elseIf Request.ServerVariables("HTTP_REFERER") = "http://www.clientb.com" then
session("referer")= "clientB"
end if
... something like that. Then you would show logo and other content according to referrer (or client), for example: Code:
<% If session("referer")="clientA" then %>
<img src="images/clienta.jpg">
<% end if %>
Or, you could develop a naming convention and reduce code: Code:
<img src="logo_<%=session("referer")%>
Hope that helps. |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Changing web details for members |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|