Writing to a Label in a UserControl from WebForm c

chav

New Member
I have a very, very simple User Control with a label (called lblStatus) on it and nothing else. This User Control (called Status) is being used in a Web Form. How can I write to the label in the User Control form the Web Form in which it is being used?<BR><BR>I have tried:<BR><BR>Dim oStatus as Status<BR>oStatus.lblStatus.Text = "foobar"<BR><BR>But I get an exception, "Object is not set to an instance of the object."<BR><BR>I would really appreciate any help in this matter. I know User Controls should act like include files, at the very least, but for the life of me I can find out how to do this and the documentation is woefully inadequate.<BR><BR>rpeters
 
Back
Top