D
DC Gringo
I am a bit twisted and need some straightening out. I have a webform with 3
controls on it: a mainHeader, a sectionHeader with a label control contained
in the mainHeader, and a topHeadline.
In the topHeadline, I am retrieving a value with a stored procedure. I need
to set that value to a label control within the sectionHeader like this:
mainHeader1.sectionHeader1.sectionHeaderLabel.Text = myVariable
In topHeadlines, I have:
Public countryName As String
Protected mainHeader1 As mainHeader
Protected sectionHeader1 As sectionHeader
(In Page Load): mainHeader1.sectionHeader1.sectionHeaderLabel.Text =
myVariable
The error I get is: "Object reference not set to an instance of an object."
What am I doing wrong?
_____
DC G
controls on it: a mainHeader, a sectionHeader with a label control contained
in the mainHeader, and a topHeadline.
In the topHeadline, I am retrieving a value with a stored procedure. I need
to set that value to a label control within the sectionHeader like this:
mainHeader1.sectionHeader1.sectionHeaderLabel.Text = myVariable
In topHeadlines, I have:
Public countryName As String
Protected mainHeader1 As mainHeader
Protected sectionHeader1 As sectionHeader
(In Page Load): mainHeader1.sectionHeader1.sectionHeaderLabel.Text =
myVariable
The error I get is: "Object reference not set to an instance of an object."
What am I doing wrong?
_____
DC G