Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 518
  • Last Modified:

Using Login Control in Visual Studio .Net 200

Does any one have ideas how I can use the Login and Membership controls in visual studio .net 2005 if I have the users names and passwords stored in an oracle database ???
0
ehmf
Asked:
ehmf
1 Solution
 
TheNigeCommented:
put this in your login page code behind.

Private Sub login_Authenticate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.AuthenticateEventArgs) Handles login.Authenticate

'Use authentication method of you choice. ie. connect to sql server or Oracle
if user is authenticated then
e.authenticated = true
else
e.authenticated = false
end if

End Sub

The above code overrides the login control's Authenticate method.  You can then modify it to access your user database to authenticate how ever you want to.
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now