views:

57

answers:

1

I have the following URL: /Login.aspx?ReturnUrl=Default.aspx#/mydesign

Request.QueryString["ReturnUrl"] only returns "Default.aspx".

Why doesn't it return "Default.aspx#/mydesign"?

+1  A: 

Because everything after the hash mark (#) is called a fragment, and per the HTTP spec, the fragment portion of the url is never sent to the server. You can check it in clientside JavaScript only.

EricLaw -MSFT-