asp.net mvc - Ajax #anchors processing with MVC -


i looking standardize processing of ajax #anchors @ server side, using mvc.

before controller action invoked want convert every request ajax anchors request without ajax anchors, controller code not know there anchors in request:

for example:

1) /user/profile#user/photos should treated /user/photos

2) /main/index#user/profile/33 should treated /user/profile/33

what best technique in mvc accomplish that?

anchors not pushed server url. 1 option put value /main/index#user/profile/33 inside hidden field , contents of controller.

however not sure how using anchors within markup page may not help!


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -