Solved

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

Posted on 2014-01-27
1
1,153 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Example works but why do I need to click twice on button 4 42
List<PaisEntity> - show some 1 24
vb.net class 3 14
MailAddress in vb 4 15
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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