public override void load(object sender, EventArgs e) { addressDT = ShippingDAO.getShippinByUserID(Session[Constant.Session.LOGED_IN_USER_ID] + ""); if (addressDT == null) { addressDT = new DataTable(); } userDT = RegisterDAO.getUser(Session[Constant.Session.LOGED_IN_EMAIL] + ""); if (userDT == null) { userDT = new DataTable(); } }
public override void load(object sender, EventArgs e) { this.isEnalbleCache = false; string email = Session[Constant.Session.LOGED_IN_EMAIL] + ""; addressDT = ShippingDAO.getShippinByUserID(Session[Constant.Session.LOGED_IN_USER_ID] + ""); if (addressDT == null) { addressDT = new DataTable(); } userDT = RegisterDAO.getUser(email); if (userDT == null) { userDT = new DataTable(); } orderDT = OrderDAO.getOrderByEmail(email); if (orderDT == null) { orderDT = new DataTable(); } }
public static DataTable getUser(string email) { return(RegisterDAO.getUser(email)); }