简体   繁体   中英

Button CommandName code

In the standard default new website in VS2012, the Account section Login.aspx has a button to send the login information. There is no event code for that, it apparently runs "Login" which is the CommandName. Where is the code that processes that? Can it be added to or altered? I cannot find it it anywhere in the project. How does the Login actually happen?

The login button is within a <asp:Login /> web control. The <asp:Login /> control will use the default MembershipProvider set in web.config (or machine.config)...or you can set the MembershipProvider property on the Login control

How to: Use the ASP.NET Membership Provider

Membership and Role Provider

To control/alter the login logic you can create a custom MembershipProvider that override's the ValidateUser method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM