html controls with same ID

Discussion in 'ASP .Net Web Controls' started by steven scaife, May 1, 2006.

  1. I am porting an ASP application to ASP.net, in my ASP application i have 4
    columns of text boxes, each column of textboxes have the same ID thus
    becoming an array when i use the split on them.

    In ASP.net however i cannot get the value of the textboxes through the
    request.form object. Is there a way to emulate this in asp.net

    The reason is because its an electronic purchase order system so i have
    boxes for quantity, price, description and code. I have a javascript that
    works out the VAT, sub total and the grand total of subtotal + VATtotal.

    thanks in advance for any help
     
    steven scaife, May 1, 2006
    #1
    1. Advertising

  2. Each control ID is suppose to be unique, the name attribute may be the same
    and produce the array you seek.

    You can still use Request.Form in ASP.NET - the proper way to use the
    Request.Form index is to access posted elements by their name attribute.

    - Steve

    "steven scaife" wrote:

    > I am porting an ASP application to ASP.net, in my ASP application i have 4
    > columns of text boxes, each column of textboxes have the same ID thus
    > becoming an array when i use the split on them.
    >
    > In ASP.net however i cannot get the value of the textboxes through the
    > request.form object. Is there a way to emulate this in asp.net
    >
    > The reason is because its an electronic purchase order system so i have
    > boxes for quantity, price, description and code. I have a javascript that
    > works out the VAT, sub total and the grand total of subtotal + VATtotal.
    >
    > thanks in advance for any help
     
    Steve Goodyear, May 2, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Tolman
    Replies:
    0
    Views:
    3,022
    Jeff Tolman
    Nov 4, 2003
  2. Darren Clark
    Replies:
    0
    Views:
    327
    Darren Clark
    May 3, 2004
  3. Replies:
    2
    Views:
    406
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    May 4, 2006
  4. Replies:
    3
    Views:
    503
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    May 16, 2006
  5. Replies:
    1
    Views:
    412
    Andrew Thompson
    Nov 29, 2006
Loading...

Share This Page