How about this?
 
As soon as you finish adding those textboxes to the form, create an
input hidden field that has runat = server attribute and assign it the
number of text boxes created.
 
If you are gonna follow the sequence as you showed in your example, you
can use the input hidden field value and access the textboxes starting
with "1" to the number in the hidden field in the code behind.
 
Rajendra.
 
  _____  

From: christopher andrada [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 22, 2004 3:53 PM
To: [email protected]
Subject: [AspNetAnyQuestionIsOk] How to get a value of an unknow "ID" of
a textbox
 
Hi All,

i have a javascript function that dynamically creates
a row of a table.  along with that function, it also
creates textbox dynamically.  For example,

<input type="text" name="textBox_1" id="textBox_1"
runat="server" value="1">
<input type="text" name="textBox_2" id="textBox_2"
runat="server" value="1">
<input type="text" name="textBox_3" id="textBox_3"
runat="server" value="1">
<input type="text" name="textBox_4" id="textBox_4"
runat="server" value="1">
.
.
.
.
.

These text box are dynamically genenrated by my
javascript function.  How do I access the values of
the textboxes from the code behind since the number of
textboxes is unknow.  That means i have to run a for
loop. 


            
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
http://info.mail.yahoo.com/mail_250



Yahoo! Groups Sponsor
 
<http://us.ard.yahoo.com/SIG=129vskiks/M=324658.5816620.6854924.3001176/
D=groups/S=1705006764:HM/EXP=1103835211/A=2343726/R=0/SIG=12ints7bm/*htt
p:/clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=110374881125
7095>
<http://us.ard.yahoo.com/SIG=129vskiks/M=324658.5816620.6854924.3001176/
D=groups/S=1705006764:HM/EXP=1103835211/A=2343726/R=1/SIG=12ints7bm/*htt
p:/clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=110374881125
7095> 
Get unlimited calls to
<http://us.ard.yahoo.com/SIG=129vskiks/M=324658.5816620.6854924.3001176/
D=groups/S=1705006764:HM/EXP=1103835211/A=2343726/R=1/SIG=12ints7bm/*htt
p:/clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=110374881125
7095> 
U.S./Canada
<http://us.ard.yahoo.com/SIG=129vskiks/M=324658.5816620.6854924.3001176/
D=groups/S=1705006764:HM/EXP=1103835211/A=2343726/R=1/SIG=12ints7bm/*htt
p:/clk.atdmt.com/VON/go/yhxxxvon01900091von/direct/01/&time=110374881125
7095> 
 
<http://view.atdmt.com/VON/view/yhxxxvon01900091von/direct/01/&time=1103
748811257095> 
 
<http://us.adserver.yahoo.com/l?M=324658.5816620.6854924.3001176/D=group
s/S=:HM/A=2343726/rand=150741276> 
 
  _____  

Yahoo! Groups Links
*       To visit your group on the web, go to:
        http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
          
*       To unsubscribe from this group, send an email to:
        [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
cribe> 
          
*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> . 


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to