Aslam-o-Alaikum
How to generate Run time textboxes and get their value in thir page.
means first time i give the number how much textbox generate and second page it put value in textbox and in third page i get the value in asp.net
plz
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suthish NairRank #92 · 22.8K reputationPosted Mar 9, 2011, 12:57 AM EST
Different Ways to Pass Data between Web Forms
Raja KrishnamurthyRank #3,615 · 403 reputationPosted Mar 8, 2011, 2:34 AM EST
Is this a web or windows app?
What do you mean by First page / Second page / Third page?
Are you trying to create a wizard like scenario?
Regards,
Raja
Dipa AhujaRank #1,168 · 1.5K reputationPosted Mar 8, 2011, 4:17 AM EST
to generate textbox at runtime you can use the code as:
in the 1st page just give a textbox and button to enter "No. of textbox to generate" redirect to second page. store the no. of textbox in querystring or session
Now in the second page write the code using for loop to add no. of textbox
TextBox tx = new TextBox();
Page.Form.Controls.Add(tx);
this will add the textbox on the webpage at runtime.
and on the button click event store the values of all textbox into session and redirect to third page where you want to display the values of textbox
Koteswararao MallisettiRank #2,740 · 511 reputationPosted Mar 8, 2011, 6:09 AM EST
you can directly use
page.controls.Add(tx)/ page.controls.AddAt(index,tx)
u can utilize in your wish.
Dipa AhujaRank #1,168 · 1.5K reputationPosted Mar 9, 2011, 12:51 AM EST
Smart LuckyRank #2,625 · 531 reputationPosted Mar 9, 2011, 3:14 AM EST