tags:

views:

26

answers:

1

In asp.net i need to check if a form has certain keys in it. How do i do this? i thought form.HasKey() would work but then i found out there is no overload and really just tells you if its empty or not. How do i check for a key without causing an exception? The key is allowed to be empty.

+1  A: 
Request.Form.AllKeys.Contains(v)
acidzombie24