right.
However, the problem is since i know the max number of
input fields and i also know the portion of the names
of the input field ("textBox_"), if I run a for loop
like this
string temp;
for (int i = 1; i<= maxNum; ++i) {
temp = "textBox_" + i.toString();
//thus will give me the exact name of the field.
//but this is data type string. This is just the
name of the object not the object itself. Therefore I
can't access the value using "temp.Value". I guess
that's what my problem is.
}
I have another question for you if you don't mind.
<input type="text" id="test" runat="server"
onChange="...">
if an onChange calls a javascript function, is there a
way i can call a function written from code behind
when there is a change in the input field?
I really appreciate your help.
thanks,
chris andrada
--- Rajendra Appalla <[EMAIL PROTECTED]>
wrote:
> 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]
>
>
__________________________________
Do you Yahoo!?
Send holiday email and support a worthy cause. Do good.
http://celebrity.mail.yahoo.com
------------------------ 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/