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
Post a Comment