SteveoAtilla
Regular
Hey All!
I have created a class object (.ascx file) and am testing the functionality of it.
I am up to the point of testing the different elements of the class, and I have run into a wall that I would not have anticipated.
The class object has (of course) various controls and objects. I was simply trying to set the value of lblError.Text from the page with the user control.
I have the class built and names "ProdSearch".
What type of statement would I use? Here is what I was trying:
But I don't get the 'lblError' as an object after I type "SearchPanel."
What am I doing wrong?
Thanks,
Kahuna
I have created a class object (.ascx file) and am testing the functionality of it.
I am up to the point of testing the different elements of the class, and I have run into a wall that I would not have anticipated.
The class object has (of course) various controls and objects. I was simply trying to set the value of lblError.Text from the page with the user control.
I have the class built and names "ProdSearch".
What type of statement would I use? Here is what I was trying:
Code:
Dim SearchPanel As New ProdSearch
...
SearchPanel.lblError.Text = "Test Text"
But I don't get the 'lblError' as an object after I type "SearchPanel."
What am I doing wrong?
Thanks,
Kahuna