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,
How to Clear Repeater Text Box Values
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Vasu GadhiyaRank #7,540 · 239 reputationPosted Jul 2, 2014, 9:37 PM EDT
foreach (RepeaterItem item in Repeater1.Items)
{
TextBox txtName= (TextBox)item.FindControl("txtName");
if(txtName!=null)
{
txtName.text = "";
}
}
Khan Abrar AhmedRank #778 · 3K reputationPosted Jul 2, 2014, 9:30 PM EDT
ex:
foreach( repeateritem item on rp.items)
{
//find the text box here;
//apply the clear logic like string .empty.
}
Rajagopalan R VRank #6,801 · 256 reputationPosted Jul 3, 2014, 3:13 AM EDT
Thank You Its Working Fine For Me Vasu
With Regards....,
R.V.Rajagopalan