Last active
September 12, 2017 23:02
-
-
Save 5up3rman/16835877967aae60d9c00e9a67bd40dc to your computer and use it in GitHub Desktop.
Web Utilities Get Query String Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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