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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Mar 9, 2011, 5:57 AM
Different Ways to Pass Data between Web Forms
Smart LuckyPosted Mar 9, 2011, 8:14 AM
Dipa AhujaPosted Mar 9, 2011, 5:51 AM
Koteswararao MallisettiPosted Mar 8, 2011, 11:09 AM
you can directly use
page.controls.Add(tx)/ page.controls.AddAt(index,tx)
u can utilize in your wish.
Dipa AhujaPosted Mar 8, 2011, 9:17 AM
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
Raja KrishnamurthyPosted Mar 8, 2011, 7:34 AM
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