Is there a quick and simple way to check if a key exists in a NameValueCollection without looping through it?
Looking for something like Dictionary.ContainsKey() or
NameValueCollection n = Request.QueryString; if (n.HasKeys()) { //something }
Return Value Type: System.Boolean true if the NameValueCollection contains keys that are not null; otherwise, false. LINK