Hi Friends......,
How to Clear the Text Box Values Inside the Repeater
I Have Used
tbxID.Text="";
and
tbxID.Text=string.Empty;
Its Clearing Other Normal Text Boxes But this is Not Clearing The Repeater Text Box Value
With Regards.....,
R.V.Rajagopalan,
Loading

Vasu GadhiyaPosted Jul 3, 2014, 1:37 AM
foreach (RepeaterItem item in Repeater1.Items)
{
TextBox txtName= (TextBox)item.FindControl("txtName");
if(txtName!=null)
{
txtName.text = "";
}
}
Rajagopalan R VPosted Jul 3, 2014, 7:13 AM
Thank You Its Working Fine For Me Vasu
With Regards....,
R.V.Rajagopalan
Khan Abrar AhmedPosted Jul 3, 2014, 1:30 AM
ex:
foreach( repeateritem item on rp.items)
{
//find the text box here;
//apply the clear logic like string .empty.
}