lundi 12 janvier 2015

How to update many links in a web page


I am using MVC webgrid and an artifact of navigating the page is I have lots of urls that look like like:



<a href="/SyntheticData/MasterDetail?modelIn=Exact.Web.ViewModel.MasterDetailViewModel&amp;entrystate=Templates&amp;selectedrow=5">►</a>


I need to change entrystate=Templates to entrystate=Paging.


Is there a jscript way to make this change for all the links in a simple script ?


The links are being generated by the webgrid component and I have no access to it. They seem to be formed because the grid takes the url that invokes the action and uses it as a base url (entrystate and modelIn are routevalues invoking the action). I have no control over this. My only option seems to be fixing the html after it is created. I am stuck with this lame grid.





Aucun commentaire:

Enregistrer un commentaire