Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: Request.Form Collection

Reply
Thread Tools

Re: Request.Form Collection

 
 
bruce barker
Guest
Posts: n/a
 
      05-26-2004
you are incorrect, the values are posted with duplicate names.

<form>
<input type=text value=value1 name=textbox>
<input type=text value=value2 name=textbox>
<input type=text value=value3 name=textbox>
</form>

will post in the following format

textbox=value1&textbox=value2&textbox=value3

The NameValueCollections returns the values as a comma seperated list when
the iterator is used, but you can use the GetValues method to return an
array of values for a given key.

-- bruce (sqlwork.com)





"Gigi" <> wrote in message
news:605A2969-9B10-4EB5-8748-...
> Hi,
> I'm submitting a form using POST. The form has some text boxes that all

have the same name. So the values from these text boxes get posted to the
server separated by commas (,).
>
> I'm trying to retrieve individual values of theses text boxes on the

server, but without using the Split method (since values in the text boxes
can have commas). I know that I was able to do that in classic ASP, using
Request.Form("txtBoxName")(0) or something like that.
>
> How can I achieve the same result in ASP.NET?
>
> Thanks.



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
create collection of collection Hemant ASP .Net 1 10-22-2009 03:04 PM
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Sorting the Collection(java.util.Collection) of Elements Pradeep Java 2 01-24-2007 02:33 PM
Adding to collection from controlDesigner only produces end tag for the collection. Don ASP .Net Building Controls 0 07-22-2005 09:31 PM
STL - an algorithm for finding a collection within a collection? Dylan C++ 5 03-22-2005 01:31 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57