①foreach (RepeaterItem item in this.txtRepeater.Items)
{
string txtUser = ((TextBox)item.FindControl("txtUserName")).Text;
}
注意加页面的加载事件:if (!this.Page.IsPostBack){}
②在OnItemCommand的后台事件中
TextBox box = (TextBox)e.Item.FindControl("repeater中的控件");
②我还没试,①是可以的