How do I create a custom membership provider for ASP.NET MVC 2?
问题 How do I create a custom membership for ASP.NET MVC 2 based on the ASP.NET membership provider? 回答1: I have created a new project containing a custom membership provider and overrode the ValidateUser method from the MembershipProvider abstract class: public class MyMembershipProvider : MembershipProvider { public override bool ValidateUser(string username, string password) { // this is where you should validate your user credentials against your database. // I've made an extra class so i can