I am considering using a hash method to create static URLs for content that is controlled by ajax calls in Asp.Net MVC. The proof of the concept I'm working on is the profile page /user/profile, where you can view and edit different sections. You can always request the following URL /user/profile#passwordto access directly your profile page in the password change section
However, I am wondering if I’m starting it badly, because apparently I can’t get access to this part after the hash, except for declaring the route value for the hash in global.asax. So I wonder if this is the right way to access this part of the url?
Should I declare a route value or is there another way to work with hash values (wireframe, javascript or mvc)?
Edited to add:
In pure javascript, I have no problem using the property window.location.hash, I'm not sure how standard it is in today's browsers, hence the question is about the javascript framework / plugin that will use it.
source
share