Request.QueryString [] does not return my desired value

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

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

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

+4
source share
1 answer

Since everything after the hash mark (#) is called a fragment, and according to the HTTP specification, the fragmented part of the URL is never sent to the server. You can only verify this with client-side JavaScript.

+3
source

Source: https://habr.com/ru/post/1302595/


All Articles