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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -