62,269
社区成员
发帖
与我相关
我的任务
分享
Control btn = (sender as Button).NamingContainer;
DataListItem item = ctl as DataListItem;
Control ctl = item.FindControl("控件ID");
protected void datalist1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if ("btn".Equals(e.CommandName))
{
TextBox lbn = (TextBox)e.Item.FindControl("tbx");
}
}