Hi
How can we Edit Data in the Repeater control?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Oct 21, 2011, 11:36 PM
Please refer Our recommended articles.
Thanks
Javeed M ShaikhPosted Oct 21, 2011, 10:37 PM
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".