Skip to content

Instantly share code, notes, and snippets.

@5up3rman
Created September 13, 2017 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5up3rman/1c67f6b51ee4b285d91697661aaa4609 to your computer and use it in GitHub Desktop.
Save 5up3rman/1c67f6b51ee4b285d91697661aaa4609 to your computer and use it in GitHub Desktop.
Web Utility - Add Query String
var url1 = WebUtil.AddQueryString("http://www.mysite.net", "print", "1");
// Result: "http://www.mysite.net?print=1"
var url2 = WebUtil.AddQueryString("http://www.mysite.net", "print", "1", "lg", "print");
// Result: "http://www.mysite.net?print=1&lg=print"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment