A
Andrew Hayes
I've setup a test C#.NET web app that correctly uses Membership with the
Login, LoginView and LoginState controls in Visual Studio 2005. I've tested
it thoroughly and it all works as expected, with the User Name and Password.
Then I wanted to add a 3rd field called Department.
By converting the Login to a Template I was able to add the new ASP:Label,
ASP:Textbox and ASP:RequiredFieldValidator tags, and added custom code to
the Authenticate event, but I am not able to retrieve the information from
the new textbox.
I can see Login1.UserName and Login1.Password but not Login1.Department.
What am I missing? How do I get the contents of the new textbox into the
Authenticate event handler so I can do the checking?
Any help would be appreciated. Thank you.
Login, LoginView and LoginState controls in Visual Studio 2005. I've tested
it thoroughly and it all works as expected, with the User Name and Password.
Then I wanted to add a 3rd field called Department.
By converting the Login to a Template I was able to add the new ASP:Label,
ASP:Textbox and ASP:RequiredFieldValidator tags, and added custom code to
the Authenticate event, but I am not able to retrieve the information from
the new textbox.
I can see Login1.UserName and Login1.Password but not Login1.Department.
What am I missing? How do I get the contents of the new textbox into the
Authenticate event handler so I can do the checking?
Any help would be appreciated. Thank you.