The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: RE: RGB to Component. Ohh Eck.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Web ASP or javascript code help needed



Quoting steve.cooper@xxxxxxx:
> All I need is some code to do that?  Any ideas?

In your global.asa file, stick something in the Session_OnStart routine -
eg:

Sub Session_OnStart
Dim startPage
Dim currPage
startPAge="/index.asp"

' Check to see if requested page is the front page to the site
currPage = Request.ServerVariables("SCRIPT_NAME")

' if page is not correct then send the visitor to the correct login page
if strcomp(currPage, startPage, 1) Then
Response.Redirect( startPage)
End If
End Sub

HTH,

Tony


Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.