protected void imgbConfirmarC_Click(object sender, ImageClickEventArgs e) { string msg = Validar(); if (msg != "") { Response.Write("<script language='javascript'>alert('Los campos:" + msg + "\\nSon obligatorios');document.location.href='dflCarritoE.aspx'</script>"); } else { Session["CveVenta"] = objDatos.ConfirmarVenta(Application["cnn"].ToString(), int.Parse(Session["cveUsu"].ToString()), 0, float.Parse("0.16"), '1', int.Parse(Session["MetE"].ToString()), txtDir.Text, int.Parse(Session["MetP"].ToString()), int.Parse(Session["IdP"].ToString())); Response.Write("<script language='javascript'>alert('La venta con clave" + Session["CveVenta"].ToString() + " ha sido completada correctamente');document.location.href='dflDescripVentaE.aspx'</script>"); } }