62,243
社区成员




//e.g.:
ClientScript.RegisterHiddenField("titleUniqueId", title.UniqueID);
Request.Form[Request.Form["titleUniqueId"].ToString()].ToString();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
for (int i = 0; i < 10; i++)
{
string a = "HyperLink" + (i + 1); //例如是超链接控件,你的是文本控件, 进行修改即可
Control cr = this.Page.Master.FindControl("ContentPlaceHolder1").FindControl(a);
if (cr != null)
Response.Write("found");
else
Response.Write("not found");
}
}
}