Including hash values in ASP.NET MVC URL routes

后端 未结 4 1222
[愿得一人]
[愿得一人] 2020-12-01 09:08

I need to implement hash value i.e the Url should look like this:

/home/index/#create

For this have added a route:



        
4条回答
  •  天命终不由人
    2020-12-01 09:34

    When a browser makes a request for a URL, it does not send anything after a hash to the server. This route may enable you to generate route URLs containing the hash value but there is no way to do anything server-side when the user navigates to such a URL. That's just the way the web works...

提交回复
热议问题