Hello everyone:
This page shows all the available Members in the MembershipCreateStatus Enumeration:
http://msdn.microsoft.com/en-us/library/system.web.security.membershipcreatestatus.aspx
Example: Lets say I needed an additional Email Validation Member, is this possible?
I try using an enum like this:
public enum MembershipCreateStatus { DuplicateUserName, DuplicateEmail, InvalidPassword, InvalidEmail, InvalidAnswer, InvalidQuestion, InvalidUserName, ProviderError,UserRejected, myOwnMember }
Then adding that to a switch block:
public string ValidateUserEnrty(MembershipCreateStatus status) { switch (status) { case MembershipCreateStatus.myOwnMember: return "Dude wheres my car."; default: return "Bad things happen to good people"; } }
Of coarse I added some conditions to catch errors on the enum but it does not work. I also try overriding it but no luck, I am thinking I'll have to create a defferent validation method in addition to using the member. The truth is I am not sure what the hell
I am doing.
Can I create my own member?
Thank you!
Thanks!