//更新数据
protected void lbtn_Update_Click(object sender, EventArgs e)
{
LinkButton lbtn_Update = (LinkButton)sender;//可以为各种控件
string id = lbtn_Update.CommandArgument;
//获取textbox的值
RepeaterItem ri = (RepeaterItem)lbtn_Update.NamingContainer;
string name = ((TextBox)ri.FindControl("TextBox1")).Text.Trim();
string address = ((TextBox)ri.FindControl("TextBox2")).Text.Trim();
string prname = ((TextBox)ri.FindControl("TextBox3")).Text.Trim();
Response.Write(name + address + prname + tel + ip + mac + centent);
}