asp.net mvc 4 - Update URL when using Ajax call in MVC 4 -


i using ajax begin in view make asynchronous call filter results on view. have working fine url not updated search filter did when doing full page refresh.

@using (ajax.beginform(new ajaxoptions {     httpmethod = "get",     insertionmode = insertionmode.replace,     updatetargetid = "legislatorlist",     onsuccess = "changeurl(data)" })) {     <input type="submit" name="chamber" value="house" />     <input type="submit" name="chamber" value="senate" />     <input type="submit" name="chamber" value="other" />     <input type="submit" name="chamber" value="all" /> } 

i tried using onsuccess property create new url not working properly.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -