Ask a Question related to ASP.NET General, Design and Development.
-
Jack Johnston #1
Capturing Data of Dynamically Created TextBox's
Hi there,
I am dynamically created a table at runtime on an aspx form. The last
cell of each row contains a TextBox in which the user will enter
numeric values into.
Each textbox I create is given a name such as myTextBox0, myTextBox1,
... etc Basically the index of the loop that creates the table is
appended to the end of each TextBox name (ID).
My Problem:
How do I capture the values in each text box once the user continues
(click button) to the next screen??
If you could possibily post me an example of how to do this I would be
most grateful.
Thanks in advance.
Jack Johnston Guest
-
Managing ViewState of a dynamically created Custom Composite Server Control -(where the original is also dynamically created)
Ok here's my scenario. I have a Custom Composite Server Control (CCSC) consisting of a TextBox, Button & Panel. (And some other code - which I... -
applying xsl to dynamically created xml
I've been puzzling over this for hours. I hope someone here can help me out. I'm building a site that takes data from a MYSQL database and then... -
using dynamically created Xml data for movieClipsresident on the Scene?
I am creating a virtual map of the united states. As some of you might know, it is easier to assemble all of the states right on the timeline than... -
Dynamically created user controls
In ASP.Net, I am working with some in-house software that dynamically creates a form based on rows in a database table. For example, most pages... -
Access dynamically created controls
Hi there, I read a lot about this issue but still got no clear answer that solves my problem. I've a Web User Control with a placeholder called... -
Natty Gur #2
Re: Capturing Data of Dynamically Created TextBox's
how do you move to the next page ?
if you use Server.Transfer you can use the Form collection:
Form["myTextBox0"]
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
John Johnston #3
Re: Capturing Data of Dynamically Created TextBox's
No I just have a button and within the button event I attempt to capture
the values. Can you please be more specific?
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
John Johnston Guest
-
Natty Gur #4
Re: Capturing Data of Dynamically Created TextBox's
On the same page ? by using the controls ID (just dont forget to
recreate them on post back) and the FindControl method :
string x = ((TextBox)this.FindControl("mytextbox1")).Text;
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
John Johnston #5
Re: Capturing Data of Dynamically Created TextBox's
but on postback isn't everything recreated? so the values within the
text box will be wiped?
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
John Johnston Guest
-
Natty Gur #6
Re: Capturing Data of Dynamically Created TextBox's
Yes, every thing recreated but the asp.net smart enough to change the
text box value to the value submitted from the client.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

