1.aspx文件: public void SetLabel(string str) ascx文件; protected void Button1_Click(object sender, EventArgs e) 2. 在自定义控件中定义这个控件的属性 public Control LabelText} 3用FindControl方法寻找 Label lbl = (Label)WebUserControl1.FindControl("Label1"); 相关文章: 2022-12-23 2022-12-23 2022-02-02 2022-02-03 2022-01-28 2022-12-23