[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
RE: [OT] Web ASP or javascript code help needed
You could use something like at the top of the page:
<%
THISPAGE = Request.ServerVariables("URL")
If THISPAGE ="/NAME OF ASP FILE" Then
response.redirect ("PAGE YOU WANT TO REDIRECT TO")
End If
%>
-----Original Message-----
From: steve.cooper@xxxxxxx [mailto:steve.cooper@xxxxxxx]
Sent: 24 June 2003 08:42
To: ukha_d@xxxxxxx
Ok the redesign of the site is going quite well but I have just got to get
over one issue.
The site has no frames but instead uses some asp code to combine various
files together (e.g. header, side menu etc) so you get a phpnukem type of
look. This causes a problem when you do a search as the site search engine
picks up the individual files. What I want to do is define a variableor
similar in the main template and then if this variable isn't defined when
the page loads, redirect it to the correct link for the page.
All I need is some code to do that? Any ideas?
S.
-------------------------------------------------------------------------
The information contained in this message is confidential and may be
legally
privileged. If you are not the intended recipient, please do not read, copy
or otherwise use it and do not disclose it to anyone else.
Please notify the sender of the delivery error and then delete the message
>from
Any views or opinions expressed in this email are those of the author only.
Communications will be monitored regularly to improve our service and for
security and regulatory purposes.
Thank you for your assistance.
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index
|