Re: Catch previous url in custom error page

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Jason Zhou (jzhou_at_apx.com)
Date: 06/24/04


Date: Thu, 24 Jun 2004 15:28:52 -0700

If I don't use that custom error page, do I have anyway to get control even
the file or directory specified in the request does not exist on my website?

Jason

"Jason Zhou" <jzhou@apx.com> wrote in message
news:#$YcyajWEHA.4000@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> I have a question on how to get the previous url in custom error file.
Here
> is what I am doing:
>
> If someone visit my website with a wrong file name or wrong directory
name,
> IIS will automatically show error 404 page, this was setup by default in
IIS
> web site properties/Custom Errors. I replaced that 404b.htm with my aspx
> file try to handle this error by myself. the problem is that I can not get
> previous url that user requested in my aspx page, I was thinking that
> urlreferer property, but it does not work either. Does anybody has
> experience on this issue before?
>
> Any suggestion will be appreciated.
>
> Jason
>
>



Relevant Pages

  • RE: Catch previous url
    ... "Jason Zhou" wrote: ... > I have a question on how to get the previous url in custom error file. ... > web site properties/Custom Errors. ... I replaced that 404b.htm with my aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • Catch previous url
    ... I have a question on how to get the previous url in custom error file. ... If someone visit my website with a wrong file name or wrong directory name, ... web site properties/Custom Errors. ... I replaced that 404b.htm with my aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: asmx httphandler not properly protecting sessions?
    ... We have a asp.net ajax-like web application from which aspx request are done ... sharing the same session. ... you're using ASP.NET webservice with session state ...
    (microsoft.public.dotnet.framework.webservices)
  • Http handler conflict with Website publishing mode
    ... My web application using a Http handler to handle request for *.aspx ... But when I publishing my website with final version, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: 401.3 when logging in as user on the same system
    ... Can you post the iis log for those error request? ... if you have custom error pages, make sure you configure the correct model ... permissions aren't the same as if the IUSR_servername is being used. ...
    (microsoft.public.inetserver.iis.security)