- Joined
- Jun 28, 2006
- Messages
- 5
- Reaction score
- 0
Referencing from Web page Form Propertys of control with in another control
I have developed problem working with controls I have built in getting reference to property to work.
I have control called CEOSH_TitlePage that has the CEOSH header and information to display to user on every web page.
Inside of this control I have several properties that has user's name, access level, etc.
If I put this control on page and I can reference all the properties in CEOSH_TitlePage controls without problem using the
Protected withevents CEOSH_TitlePage1 as Projectname.CEOSH_TitlePage
Here the problem.
I have two other controls that has additional different information that needs to be displayed at the top of page after the CEOSH_TitlePage information.
I have the CEOSH_TitlePage control on this these two different controls called Top_Page and Top_Page_No_Buttons.
On webform I have
Protected withevents CEOSH_TitlePage1 as Projectname.CEOSH_TitlePage
and can reference the properties in the code but when I run the code it says I have the following error:
Object reference not set to an instance of an object and flags the statement CEOSH_TitlePage1.FacilityName="CEOSH"
Not sure how to get around this problem.
I really do not want to duplicate the code into two different controls, and I know their is away around this, just have not figured it out.
Any ideas?
I have developed problem working with controls I have built in getting reference to property to work.
I have control called CEOSH_TitlePage that has the CEOSH header and information to display to user on every web page.
Inside of this control I have several properties that has user's name, access level, etc.
If I put this control on page and I can reference all the properties in CEOSH_TitlePage controls without problem using the
Protected withevents CEOSH_TitlePage1 as Projectname.CEOSH_TitlePage
Here the problem.
I have two other controls that has additional different information that needs to be displayed at the top of page after the CEOSH_TitlePage information.
I have the CEOSH_TitlePage control on this these two different controls called Top_Page and Top_Page_No_Buttons.
On webform I have
Protected withevents CEOSH_TitlePage1 as Projectname.CEOSH_TitlePage
and can reference the properties in the code but when I run the code it says I have the following error:
Object reference not set to an instance of an object and flags the statement CEOSH_TitlePage1.FacilityName="CEOSH"
Not sure how to get around this problem.
I really do not want to duplicate the code into two different controls, and I know their is away around this, just have not figured it out.
Any ideas?
Last edited: