protected override void PostAuthenticated(SimplicityCommLib.DataSets.Common.Users.UsersRow user) { if (Session[WebConstants.Session.VIEW_DEMO] != null) { Response.Redirect("~/pages/WatchDemo.aspx"); } }
protected override void PostAuthenticated(SimplicityCommLib.DataSets.Common.Users.UsersRow user) { }
private void SetAddresses(ref SimplicityCommLib.DataSets.Common.Address.AddressRow accountAddress, ref SimplicityCommLib.DataSets.Common.Address.AddressRow billingAddress, ref SimplicityCommLib.DataSets.Common.Address.AddressRow shippingAddress) { SimplicityCommLib.DataSets.Common.AddressTableAdapters.AddressTableAdapter addressTA = new SimplicityCommLib.DataSets.Common.AddressTableAdapters.AddressTableAdapter(); IEnumerator<SimplicityCommLib.DataSets.Common.Address.AddressRow> ieAddresses = addressTA.GetAddressByCategoryId(Constants.AddressCategories.UserAddress, LoggedInUser.UserId).GetEnumerator(); while (ieAddresses.MoveNext()) { if (ieAddresses.Current.MultiAddType.Equals(Enum.GetName(typeof(ShoppingTrolley.Web.utils.Enums.ADDRESS_TYPE), ShoppingTrolley.Web.utils.Enums.ADDRESS_TYPE.PERSONAL))) { accountAddress = ieAddresses.Current; } else if (ieAddresses.Current.MultiAddType.Equals(Enum.GetName(typeof(ShoppingTrolley.Web.utils.Enums.ADDRESS_TYPE), ShoppingTrolley.Web.utils.Enums.ADDRESS_TYPE.BILLING))) { billingAddress = ieAddresses.Current; } else if (ieAddresses.Current.MultiAddType.Equals(Enum.GetName(typeof(ShoppingTrolley.Web.utils.Enums.ADDRESS_TYPE), ShoppingTrolley.Web.utils.Enums.ADDRESS_TYPE.SHIPPING))) { shippingAddress = ieAddresses.Current; } } }
protected override void PostAuthenticated(SimplicityCommLib.DataSets.Common.Users.UsersRow user) { PanelLogin.Visible = false; PanelAlreadyLoggedIn.Visible = true; }