> Hi guys, i have a question. On old asp, if i did this:
>
[quoted text clipped - 13 lines]
> i am employing a hack, replacing the commas with asterisks and then
> change then back once read...
> I don't know what the advantage of using multiple form elements all with the
> same names might be, other than to force you to employ hacks to get around it.
> However, the hack you describe seems to work, so "if it ain't broke, don't
> fix it".
The advantage is less code.
You can simply split the request variable to an array of strings and
work with them in a simple iteration. If i would use different names
for the variables, it would require more code. Storing objects in the
session or in the viewstate would not be as efficient. Old asp's way
of handling same name input was better IMO
Mark Rae [MVP] - 05 Sep 2007 07:38 GMT
>> I don't know what the advantage of using multiple form elements all with
>> the
[quoted text clipped - 5 lines]
>
> The advantage is less code.
That's not necessarily better...
> You can simply split the request variable to an array of strings and
> work with them in a simple iteration. If i would use different names
> for the variables, it would require more code.
But less hacking...
> Old ASP's way of handling same name input was better IMO
> <input type="text" name="myname" value="1">
> <input type="text" name="myname" value="2">
Hmm - if you add a new text control between those two, you'd have to give it
a value of 3 - after a while, that would surely get really messy, no...?

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net