J
Jason Zhou
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?
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?
Any suggestion will be appreciated.
Jason
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?
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?
Any suggestion will be appreciated.
Jason