用户控件与主页面之间交换变量
摘要:1 在用户控件中访问主页面中的服务器控件: TextBox tb = (TextBox)Page.FindControl("TextBox1"); if(tb != null) { tb.Visible = false; } 2 在主页面中访问用户控件中的变量或方法: protected QueryOrderModule ModuleQuery; ModuleQu...
阅读全文
posted @ 2005-07-19 18:50
浙公网安备 33010602011771号