Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 28, 2013 08:19 PM by kszymaniak
Jan 28, 2013 11:24 AM|LINK
I have started create my own membership and encountered problem. I changed code
public override MembershipUser CreateUser(string username, string password)
string sqlinsert = "insert into users(username, password) values (?, ?)";
OleDbCommand cmd = new OleDbCommand(sqlinsert, con);
cmd.Parameters.Add("username", OleDbType.VarChar, 255).Value = username;
cmd.Parameters.Add("password", OleDbType.VarChar, 255).Value = password;
I got error: CustomMembershipProvider' does not implement inherited abstract member 'System.Web.Security.MembershipProvider.CreateUser(string, string, string, string, string, bool, object, out System.Web.Security.MembershipCreateStatus)'
Is it possible to change of inserting data in above code? I don't need insert this data to my table.
Second question: I have prepared form with texboxes and button to register new user. How to connect my form with membership?
Thank you in advance.
Jan 28, 2013 04:41 PM|LINK
not be the right choice of framework to model your accounts then.
Jan 28, 2013 08:03 PM|LINK
You need to override all the abstract methods(atleast empty method) available on Membership.
Jan 28, 2013 08:19 PM|LINK
I understand. It's not good. I must find something else.
Thank you for yr help.Regards