Click here to Skip to main content
14,735,205 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi,


I placed textbox in a repeater how to get their values and the id into a varible
Posted
Comments
   
What have you tried?

1 solution

you can iterate all the items of the repeater control and find all the textbox controls as below.
foreach (RepeaterItem item in myRepeater.Items)
{
    foreach ( TextBox tb in item.Controls.OfType<textbox>()) {
      //do something with each textbox...
    }
}
   
v2

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