Getting and Setting Query String Values in JavaScript

Posted by: Rick Strahls WebLog, on 07 Sep 2009 | View original | Bookmarked: 0 time(s)

Lately that Ive been working with ASP.NET MVC Ive been finding myself in a few situations where Ive needed to inject values into existing URLs. For example, when creating paging on a page its 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 dont know whether the page number is there or not or for that matter whether...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Regex | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1232 | Hits: 71

Similar Posts

  • Private Extension Methods more
  • Serialising Microsoft StreamInsight QueryTemplates more
  • Filtering with string parameter that allows free user input more
  • LINQ Tip of the week: System.String support more
  • Url.Action() and RouteValue Encoding more
  • Checking for EF to TSQL Query Compilation Changes in VS2010 Beta1 more
  • Validation - Part 2 - Client-Side more
  • Validation - Part 1 - Getting Started more
  • ORM Release History : Q1 2009 SP1 (version 2009.1.405.1) more
  • Don't be afraid of complex constraints more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD