

























1
protected void Page_Load(object sender, EventArgs e)
2{
3if (!this.IsPostBack)
4{
5string[] s = new string[] { "1", "2", "3", "4", "5" };
6this.rptTest.DataSource = s;
7this.rptTest.DataBind();
8}
9}
10protected void TestBtn(object sender, EventArgs e)
11{
12Button bt = sender as Button;
13RepeaterItem ri = bt.Parent as RepeaterItem;
14TextBox tx = ri.FindControl("txt") as TextBox;
15if (!object.Equals(tx, null))
16{
17Response.Write(tx.Text);
18}
19}
20
21
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。