textbox array index

Discussion in 'ASP General' started by G, Apr 27, 2007.

  1. G

    G Guest

    Hello friend,

    I am using a textbox with in a forloop, for each time when i click a button
    it genarates a new textbox, so for example for first time there will be 1
    textbox, i will enter some value into that textbox and i click the button
    which adds another textbox and i enter someother value and i go on clicking
    for to add a new textbox and enters some value. after creating 5 textboxes i
    want to know the index of the textbox, basing on thet index i will find the
    value and do some calculations and some more. so i must compulsorily need
    index of the textbox.

    SO can any one help me.
    when i see in the view source i am seeing that 5 textboxes names are same.

    <input type="text" name="txtStores" id="txtStores" value="0" size="4"/>
    <input type="text" name="txtStores" id="txtStores" value="0" size="4"/>
    .....
    ....
    ....


    Thanks
    G
    G, Apr 27, 2007
    #1
    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. karthikeyavenkat
    Replies:
    2
    Views:
    556
    Bryce
    Mar 17, 2005
  2. Shawn W_
    Replies:
    5
    Views:
    257
    Aldric Giacomoni
    Sep 16, 2009
  3. ngoc
    Replies:
    5
    Views:
    165
    Tad McClellan
    May 11, 2006
  4. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    256
    Tomasz Chmielewski
    Mar 4, 2008
  5. Stefan Mueller
    Replies:
    7
    Views:
    173
    Thomas 'PointedEars' Lahn
    Nov 28, 2005
Loading...

Share This Page