I made a usercontrol that creates a member and it works great, when the username and/or email doesn't exist in the db before... I searched our, but I can't figure out how to check if username or email exist in the db... so a pointer would be nice! :)
How to check if username or email exist in db?
Hi,
I made a usercontrol that creates a member and it works great, when the username and/or email doesn't exist in the db before... I searched our, but I can't figure out how to check if username or email exist in the db... so a pointer would be nice! :)
{
//create a member
m.Email = emailTextBox.Text;
//Generate member Xml Cache
m.XmlGenerate(
new System.Xml.XmlDocument());
//Save member
m.Save();
}
Thanks,
Anette
Anette,
You could use the standard asp.net membership functions for that, check the wiki for details
Btw, you should also create members via the membership api rather than the member api.
Hope this helps.
Regards,
/Dirk
Dirk,
Thanks, I'll give the membership api a try...
Anette
Anette try this:
is working on a reply...