S
Steven K
Hello,
I am trying to use the findcontrol method, but keep getting an error:
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
I have tried:
Dim lblFind As String = CType(FindControl("lblSubmitter"), Label).Text
Dim lblFind As String = CType(Me.FindControl("lblSubmitter"), Label).Text
Dim lblFind As String = CType(Page.FindControl("lblSubmitter"), Label).Text
Any help with this would be appreciated
I am trying to use the findcontrol method, but keep getting an error:
Exception Details: System.NullReferenceException: Object reference not set
to an instance of an object.
I have tried:
Dim lblFind As String = CType(FindControl("lblSubmitter"), Label).Text
Dim lblFind As String = CType(Me.FindControl("lblSubmitter"), Label).Text
Dim lblFind As String = CType(Page.FindControl("lblSubmitter"), Label).Text
Any help with this would be appreciated