S
SteveS
Hello. This is driving me nuts. I am coding a control which I have a
label. When I populate the label, I get a "Object reference not set to an
instance of an object". This doesn't make sense to me. Does anyone have
any ideas???? Here is my code:
CONTROL (.ASPX)
<asp:Label ID="lblAppName" Runat="server"></asp:Label>
CONTROL (.VB)
'---Automatically generated by VS.Net 2003!
Protected WithEvents lblAppName As System.Web.UI.WebControls.Label
'--- My Code
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.PreRender
lblAppName.Text = "blah blah blah"
End Sub
Thank YOU!
Steve
label. When I populate the label, I get a "Object reference not set to an
instance of an object". This doesn't make sense to me. Does anyone have
any ideas???? Here is my code:
CONTROL (.ASPX)
<asp:Label ID="lblAppName" Runat="server"></asp:Label>
CONTROL (.VB)
'---Automatically generated by VS.Net 2003!
Protected WithEvents lblAppName As System.Web.UI.WebControls.Label
'--- My Code
Private Sub Page_PreRender(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.PreRender
lblAppName.Text = "blah blah blah"
End Sub
Thank YOU!
Steve