1 在用户控件中访问主页面中的服务器控件:
TextBox tb = (TextBox)Page.FindControl("TextBox1");
if(tb != null)
}
2 在主页面中访问用户控件中的变量或方法:
protected QueryOrderModule ModuleQuery;

ModuleQuery.DisplayQueryInfo (false);
3 也可在用户控件中新建公共的属性或方法
相关文章:
-
2022-12-23
-
2022-01-31
-
2021-06-24
猜你喜欢
-
2021-07-14
-
2021-11-04
-
2021-12-20
-
2021-12-01
-
2021-07-19
相关资源
-
下载
2023-04-05
-
下载
2022-12-30
-
下载
2023-02-03
-
下载
2022-12-15