Solved

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

Posted on 2014-01-27
1
1,121 Views
Last Modified: 2014-01-27
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.
0
Comment
Question by:hankknight
1 Comment
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 39813920
Use:
HttpContext.Current.Request.Form.Keys(i)

Open in new window

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Spacing between controls 4 16
Protecting vb6 & .Net code Obfuscation 18 48
Adjust the position 3 7
Saveas need to save a copy 16 9
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now