However, I can not use Membership.GetUser(Login1.Username); because the UserName textbox is in a LayoutTemplate.
Did you test this or do you assume you can't? When you've a TextBox called "UserName" in your LayoutTemplate, which you have and should have, you can use Login1.UserName. How do you think the Control knows which TextBox to use for the UserName (and PassWord)?
hans_v
All-Star
35986 Points
6550 Posts
Re: OnLoggedIn not working
Apr 13, 2012 06:52 AM|LINK
Did you test this or do you assume you can't? When you've a TextBox called "UserName" in your LayoutTemplate, which you have and should have, you can use Login1.UserName. How do you think the Control knows which TextBox to use for the UserName (and PassWord)?
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.login.username.aspx