Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
<tag>Could you please help me how to add Dynamic text box value to Database.

Regards
Lancy
Posted

Create dynamic textbox in repeater, and on submit
C#
foreach (RepeaterItem item in Repeater1.Items)
{
   // Find Textbox from repeater and save to database.
}
 
Share this answer
 
Comments
[no name] 5-Nov-11 9:14am    
Yes, After that you can find the control in the repeater
string strText = (((TextBox)item.Controls[1]).Text);
Mukund Thakker 5-Nov-11 9:15am    
Thanks mike for enhancing my comments.
Lancy.net 7-Nov-11 8:08am    
Hi Mukund thanks for your suggestion currently working on it..
You can use an array to keep these values.Then transfer with a "for" rotation to your database.If you can show me a code part i can help you with more detail.
 
Share this answer
 
Comments
Lancy.net 4-Nov-11 11:54am    
hi sercan any updates?
Hi Arokia,


Can you please provide some code behind or aspx thing so that we can help you...
 
Share this answer
 
Comments
Lancy.net 4-Nov-11 11:55am    
Hi srimanch any updates?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900