I have a simple loginview on a webpage. If a user is logged out they are prompted with a login control. If they do, I have a label in the LoggedInTemplate with no text value. I have programmatically set a text value through the ViewChanged Event. However, when I log in, nothing appears. It seems to me, that the ViewChanged Event is not firing. Here is my code:
Partial Class Default3
Inherits System.Web.UI.Page
Protected Sub LoginButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim UserNameTextBox As New TextBox
UserNameTextBox = DirectCast(LoginView1.FindControl("TextBox13"), TextBox)
Dim PasswordTextBox As New TextBox
PasswordTextBox = DirectCast(LoginView1.FindControl("TextBox14"), TextBox)
Dim RememberMeCheckBox As New CheckBox
RememberMeCheckBox = DirectCast(LoginView1.Find ...
Go to the complete details ...