O
Oleg Slyuasrchuk
Hi,
I have a composite control inherited from System.Web.UI.Control.
Inside of this control I need to refer to a Page level variable decalared
as
public string channelStructure.
In a debugger I see value of this variable as :
((CmsFormEditor.EditForm)(((ASP.EditForm_aspx)(((System.Web.UI.Page)((this.P
age))))))).channelStructure
As one can guess, ASP.EditForm_aspx is class created by ASP.NET runtime from
the page EditForm.aspx
where I place the control and this.Page is starting point to find the
variable.
Since I'm trying to write a generik control, I don't want to refer to
specific page name.
So, I need more generic way to refer the Page level variable.
Any help is appreciated.
Oleg
I have a composite control inherited from System.Web.UI.Control.
Inside of this control I need to refer to a Page level variable decalared
as
public string channelStructure.
In a debugger I see value of this variable as :
((CmsFormEditor.EditForm)(((ASP.EditForm_aspx)(((System.Web.UI.Page)((this.P
age))))))).channelStructure
As one can guess, ASP.EditForm_aspx is class created by ASP.NET runtime from
the page EditForm.aspx
where I place the control and this.Page is starting point to find the
variable.
Since I'm trying to write a generik control, I don't want to refer to
specific page name.
So, I need more generic way to refer the Page level variable.
Any help is appreciated.
Oleg