For Programmers: Free Programming Magazines  


Home > Archive > ASP > April 2007 > textbox array index









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author textbox array index
G

2007-04-26, 6:55 pm

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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com