Skip to content

Instantly share code, notes, and snippets.

@5up3rman
Last active September 12, 2017 23:02
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/16835877967aae60d9c00e9a67bd40dc to your computer and use it in GitHub Desktop.
Save 5up3rman/16835877967aae60d9c00e9a67bd40dc to your computer and use it in GitHub Desktop.
Web Utilities Get Query String Example
// Returns QS or Empty String
var qsWithKey = WebUtil.GetQueryString("key");
// Returns QS or Default Value
var qsWithKeyAndDefaultValue = WebUtil.GetQueryString("key", "master");
// Returns Encoded QS or Empty String
var safeQs = WebUtil.GetSafeQueryString("key");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment