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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -