Including hash values in ASP.NET MVC URL routes

后端 未结 4 1227
[愿得一人]
[愿得一人] 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:22

    You cannot fetch the value after the # symbol on the server simply because this value is never sent to the server. Only client side javascript has access to this so defining routes with hash doesn't make much sense.

提交回复
热议问题