Hi
How can we Edit Data in the Repeater control?
Edit Data in the Repeater control
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Javeed M ShaikhRank #839 · 2.7K reputationPosted Oct 21, 2011, 6:37 PM EDT
You can do that with FindControl in the event like this:
this is your repeater:
this is the event
protected void Button1_Click(object sender, System.EventArgs e)
{
Button btn = sender as Button;
TextBox tb = btn.Parent.FindControl("TextBox1") as TextBox;
if(tb != null)
{
// more code here
}
}
Please do not forget to mark "Accepted Answer".
Satyapriya NayakRank #47 · 31.5K reputationPosted Oct 21, 2011, 7:36 PM EDT
Please refer Our recommended articles.
Thanks