10
shouts

Getting and Setting Query String Values in JavaScript - Rick Strahl

published 187 days, 17 minutes ago posted by DustinDustin 187 days, 23 hours, 56 minutes ago
Wednesday, September 09, 2009 6:15:01 AM GMT Tuesday, September 08, 2009 6:36:01 AM GMT

Lately that I’ve been working with ASP.NET MVC I’ve been finding myself in a few situations where I’ve needed to inject values into existing URLs. For example, when creating paging on a page it’s often useful to add a page number when the user clicks a page selection.

Imagine you have a url like this:

http://localhost/powerwell/search?subquerytype=sales&page=3&format=detail

and now you need to update the page number. You don’t know whether the page number is there or not or for that matter whether oth...

category: Ajax | clicked: 34 | | source: west-wind.com | show counter code
tags: ASP.NET, ASP.NET MVC, ASPNETMVC, JavaScript, MVC