IIS throwing url on custom error pages?

I am using the old 404-rewrite method on a specific site linked to IIS6 *.

So if I introduce

http://example.com/non-existent/path

it calls my error page as follows

http://example.com/catch.aspx?404;http://example.com/non-existent/path

Great.

Except if I call a page with a fragment like

http://example.com/non-existent/path#with-fragment

I get the same result as above. I can not find the fragment anywhere:

  • Request.Url
  • Request.Url.OriginalString
  • Request.UrlReferrer
  • Request.RawUrl
  • server variables, etc.

This is because I want to allow the paths created by AJAX to their server-side versions.

Is there a way to get the source path from my handler?

Thank.

(*) Please do not offer to change the platform. Obviously, I would if I could.

0
source share
1

, . URL- # HTTP. .

# javascript, / Javascript History. jQuery , asp.net ajax mvc ajax ( .) . , , /.

, , 404 - , # -. , , 404 " , AJAX"? ?

+2

All Articles