日期:2014-05-18 浏览次数:20507 次
UserControl里面:
public partial class WebUserControl : System.Web.UI.UserControl
{
private Boolean _IsVisable;
public Boolean IsVisable
{
get
{
return _IsVisable;
}
set
{
_IsVisable = value;
}
}
protected void Page_Load(object sender, EventArgs e)
{
this.Button1.Visible = _IsVisable;
}
}
------解决方案--------------------
public CheckBox MyCheckBox
{
get
{
return this.MycheckBox;
}
}
然后在page上就可以操作这个checkboc 了