ASP.NET/VB: Get all keys posted from form

This returns all values posted through a form:
For i As Integer = 0 To HttpContext.Current.Request.Form.Count - 1
 response.write( HttpContext.Current.Request.Form(i) )
Next

Open in new window

How can I get all keys instead of all values?

For example,
<input type="checkbox" name="n" value="v" />

Open in new window

Instead of "v" I want "n" to be returned.
LVL 16
hankknightAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Robert SchuttConnect With a Mentor Software EngineerCommented:
Use:
HttpContext.Current.Request.Form.Keys(i)

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.