Everytime a user come in I would like to find out urlReferer. My problem is that some of the entry pages are in html, my home page though is in .Net. I know that request.UrlReferrer.toString() will give me the previously visited page but how can I find the
UrlReferer of the entry page? Thanks
Won't work. The only way to do this, imho, would be to configure iis so that ASP.NET handles html pages, and write a custom HttpHandler for these pages that checks the UrlReferer on the fly before the contents of the page is sent to the browser.
Bertrand
----
This posting is provided "AS IS" with no warranties, and confers no rights.
freedom1029
Participant
1990 Points
504 Posts
Url Referrer
Jan 22, 2004 08:24 PM|LINK
ccalderon
Contributor
4732 Points
955 Posts
Re: Url Referrer
Jan 22, 2004 09:33 PM|LINK
protected void Session_Start(Object sender, EventArgs e) { Session.Add("SESSIONOK","OK"); if(Request.UrlReferrer!=null) Session.Add("URLREF",Request.UrlReferrer.ToString()); else Session.Add("URLREF","Home"); }Principal, Software Architec and Delivery
http://www.eki-consulting.com
http://www.linkedin.com/in/chriscalderon
bleroy
All-Star
15617 Points
2302 Posts
Re: Url Referrer
Jan 22, 2004 09:40 PM|LINK
----
This posting is provided "AS IS" with no warranties, and confers no rights.
freedom1029
Participant
1990 Points
504 Posts
Re: Url Referrer
Jan 22, 2004 09:55 PM|LINK
bleroy
All-Star
15617 Points
2302 Posts
Re: Url Referrer
Jan 22, 2004 10:26 PM|LINK
----
This posting is provided "AS IS" with no warranties, and confers no rights.