protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.IsAuthenticated) { if (Request.QueryString["op"] != null) { if (Request.QueryString["op"] == "2") { if (Request.QueryString["id"] != null) { string IDVenta = Request.QueryString["id"].ToString() != null ? Request.QueryString["id"].ToString() : string.Empty; if (Request.QueryString["id"].ToString() == IDVenta) { string IDCliente = HttpContext.Current.Profile.UserName; RR_Pedido Datos = new RR_Pedido(); Datos.Cliente.IdCliente = IDCliente; Datos.VentaDetalle.IdCarritoDetalle = IDVenta; Datos.Conexion = Comun.Conexion; RR_MiCuentaNegocio MCN = new RR_MiCuentaNegocio(); PedidoDetalle = MCN.ObtenerDetallePedidosCliente(Datos); } else { } } else { } } else { } } else { } } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.IsAuthenticated) { string ID = HttpContext.Current.Profile.UserName; RR_MiCuenta Datos = new RR_MiCuenta(); Datos.Cliente.IdCliente = ID; Datos.Conexion = Comun.Conexion; RR_MiCuentaNegocio MCN = new RR_MiCuentaNegocio(); //_listaCliente = MCN.ObtenerDatosCuenta(Datos); string IDCliente = HttpContext.Current.Profile.UserName; //0AB7F66C-CA9D-4C88-BFE3-F8A38D6FD05C RR_Pedido DatoPedido = new RR_Pedido(); DatoPedido.Cliente.IdCliente = IDCliente; DatoPedido.Conexion = Comun.Conexion; _listaPedido = MCN.ObtenerPedidosCliente(DatoPedido); } } }