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: Re: Home automation plan


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

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



Ignore me, I didn't read the problem correctly - it's an internal (to the
site)
search engine that's the problem, not something like google....

soz,

Tony
Quoting Tony Butler <lists@xxxxxxx>:

> 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
>
>
> ** UKHA2004 BE THERE! ** - start planning now.
>
> http://www.automatedhome.co.uk
> Post message: ukha_d@xxxxxxx
> Subscribe:  ukha_d-subscribe@xxxxxxx
> Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
> List owner:  ukha_d-owner@xxxxxxx
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>





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.