Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RES: favorites and frame page web site


Message #1 by =?iso-8859-1?Q?Maur=EDcio_Andrade_Guimar=E3es?= <mandrade@o...> on Thu, 29 Mar 2001 08:58:36 -0300
Hi,



I guess you could use something like this in your "Session_OnStart" of your

global.asa:



Sub Session_OnStart

	If InStr(Request.ServerVariables("SCRIPT_NAME"), "mainpage.asp") = 0 Then

		Reponse.Redirect "mainpage.asp"

	End If

End Sub



Hope this can help



Mauricio







-----Mensagem original-----

De: Andrew Scott [mailto:Andrew@c...]

Enviada em: quinta-feira, 29 de março de 2001 18:51

Para: ASP Web HowTo

Assunto: [asp_web_howto] favorites and frame page web site





Hi all...



I have a few web sites in the web that have counters(these counters run

from an ASP) I hve noticed that the counter is in correct... I have viewed

the Sites Stats and found that this is because people are entering the

site via a different route than the openning home page... I gather that

they are doing this by adding to favorites and they are adding a page in

the frame...



This is a MAJOR problem as I have pages that do not have any links on and

they will end up with a blank screen... any ideas on how to make the user

enter the main page if they have added a different page to their

favorites???



Thanks in advanced

Andy Scott

Message #2 by Scott Watermasysk <swatermasysk@C...> on Thu, 29 Mar 2001 08:33:32 -0500
You could also use the Request.ServerVariables("HTTP_REFERER") to see 

what

page they came from. If it isn't your home page then you can redirect 

them.



Scott



-----Original Message-----

From: Maur=EDcio Andrade Guimar=E3es [mailto:mandrade@o...]

Sent: Thursday, March 29, 2001 6:59 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RES: favorites and frame page web site





Hi,



I guess you could use something like this in your "Session_OnStart" of 

your

global.asa:



Sub Session_OnStart

	If InStr(Request.ServerVariables("SCRIPT_NAME"), "mainpage.asp") =3D 0

Then

		Reponse.Redirect "mainpage.asp"

	End If

End Sub



Hope this can help



Mauricio







-----Mensagem original-----

De: Andrew Scott [mailto:Andrew@c...]

Enviada em: quinta-feira, 29 de mar=E7o de 2001 18:51

Para: ASP Web HowTo

Assunto: [asp_web_howto] favorites and frame page web site





Hi all...



I have a few web sites in the web that have counters(these counters run

from an ASP) I hve noticed that the counter is in correct... I have 

viewed

the Sites Stats and found that this is because people are entering the

site via a different route than the openning home page... I gather that

they are doing this by adding to favorites and they are adding a page 

in

the frame...



This is a MAJOR problem as I have pages that do not have any links on 

and

they will end up with a blank screen... any ideas on how to make the 

user

enter the main page if they have added a different page to their

favorites???



Thanks in advanced

Andy Scott




  Return to Index