• Login

Snippets

19

Check to verify if an e-mail address has been previously registered:

public bool LookupEmail(string EmailAddress)

{
 try
 {
  int intRecords = 0;

  ArrayList u = new ArrayList();

  u = UserController.GetUsersByEmail(this.PortalId, EmailAddress, 0, 1, ref intRecords);

  if (u.Count > 0)
  {
   return true;
  }
  else
  {
   return false;
  }  
 }
 catch (Exception ex)
 {
  Exceptions.ProcessModuleLoadException(this, ex);
  return false;
 }

}

Post Rating

Comments

There are currently no comments, be the first to post one!

Post Comment

Name (required)

Email (required)

Website