Forum Moderators: open
If Not Page.IsPostBack Then
Dim lblFirstName As Label = LoginView1.FindControl("lblFirstName")
If Profile.FirstName <> "" Then
lblFirstName.Text = "Welcome" & Profile.FirstName
Else
lblFirstName.Text = "Welcome"
End If
End If
This is the error:
Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
Source Error:
Line 14:
Line 15: Else
Line 16: lblFirstName.Text = "Welcome"
Line 17: End If
Line 18: End If
!Please Help!