Dynamicweb 8 Documentation
ConnectToUsersEmail Method
Example 

The email.
Connects to users email.
Syntax
'Declaration
 
Public Sub ConnectToUsersEmail( _ 
   ByVal Email As String _ 
) 
public void ConnectToUsersEmail( 
   string Email 
)

Parameters

Email
The email.
Example
class MyPage : System.Web.UI.Page
{
   private void AddOrder(Dynamicweb.eCommerce.Orders.Order order)
   {
       // If the current user is not logged in as an extranet user then...
       if (new Dynamicweb.Frontend.Extranet().UserID == 0)
       {
           // Try to add the order to the user based on the entered email
           order.ConnectToUsersEmail(order.CustomerEmail);
       }
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Order Class
Order Members

Send Feedback