Mondeo Posted November 25, 2006 Posted November 25, 2006 I want to use a customised asp.net 2.0 login control. Basically my username and password and submit imagebutton are built into my site navigation bar. Is there anyway to do somthing like this when my submit button is pressed. Private Sub btnSubmit_Click handles btnSubmit.Click Dim loginControl as New Web.UI.LoginControl loginControl.username = txtMyUsername.text loginControl.password = txtMyPassword.text loginControl.DoSubmit End Sub Thanks Quote
Administrators PlausiblyDamp Posted December 6, 2006 Administrators Posted December 6, 2006 If you are trying to log a person on programatically it might be easier to use the Membership class itself. Something like If (Membership.ValidateUser (txtMyUsername.text, txtMyPassword.text)) Then FormsAuthentication.RedirectFromLoginPage (txtMyUsername.text, false) end if should be a starting point. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.