code_junkie

Asp.net - Empty QueryString Parameter

Nov 13th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. http://example.com?bar=3&foo
  2.  
  3. Regex.IsMatch(Request.RawUrl, "[?&]thumb([&=]|$)")
  4.  
  5. bool doesFooExist = Request.Url.AbsoluteUri.IndexOf("foo=") >= 0 ? true : false;
Add Comment
Please, Sign In to add comment