How to access AJAX hash values in ASP.NET MVC? -



How to access AJAX hash values in ASP.NET MVC? -

i'm considering using hash method create static urls content managed ajax calls in asp.net mvc. proof of concept i'm working on profile page /user/profile 1 can browse , edit different sections. inquire next url /user/profile#password access straight profile page, in alter password section

however, i'm wondering if i'm not starting bad way, since apparently can't access part after hash in way, except declaring route value hash in global.asax. i'm wondering if right way access part of url?

am supposed declare route value, or there way work hash values (a framework, javascript or mvc)?

edited add: in pure javascript, have no problem using window.location.hash property, i'm not sure though how standard in today's browsers, hence question javascript framework/plugin utilize it.

the thing part follows hash (#) never sent server http request server has absolutely no way of reading it. no need waste time in searching doesn't exist.

you on other hand tune routes generate links contain hash part client scripts can read it.

asp.net-mvc ajax url hash

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -