问题描述
我正在尝试在母版页的代码隐藏文件上访问masterpage的contextplace holder的控件。
我是通过创建属性来实现的,但它给了我一个stackoverflow的错误。
控件是按钮
I am trying to access a control of contextplace holder of masterpage on the code behind file of masterpage.
I did it by creating property but it gives me a error of stackoverflow.
controls are buttons
public Button seeProfole
{
get { return seeProfole; }
set { seeProfole = value; }
}
使用:
its use :
seeProfole.Visible = true;
plz help
我尝试了什么:
我正在尝试访问masterpage的contextplace holder的控件母版页后面的代码。
我是通过创建属性来实现的,但是它给了我一个stackoverflow错误。
控件是按钮
公共按钮seeProfole
{
get {return seeProfole; }
set {seeProfole = value; }
}
plz help
plz help
What I have tried:
I am trying to access a control of contextplace holder of masterpage on the code behind file of masterpage.
I did it by creating property but it gives me a error of stackoverflow.
controls are buttons
public Button seeProfole
{
get { return seeProfole; }
set { seeProfole = value; }
}
plz help
推荐答案
public Button SeeProfole
{
get { return seeProfole; }
set { seeProfole = value; }
}
这篇关于master页面后面的代码访问控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!