Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Session["prodId"]   = Request.QueryString["cve"];
     lblNPag.Text        = Request.QueryString["pag"];
     Session["ControlP"] = ((int.Parse(lblNPag.Text) - 1) * 24) + 1;
     cantp = obj.ContListProdOfer(Application["cnn"].ToString(), int.Parse(Session["prodId"].ToString()));
     ultp  = (int.Parse(lblNPag.Text)) * 24;
     if (cantp == 0)
     {
         lblTitulo.Text = "No hay ofertas por ahora";
     }
     if (cantp < 25)
     {
         lblNPag.Visible = false;
         imgbIzq.Visible = false;
         imgbDer.Visible = false;
     }
     if (int.Parse(lblNPag.Text) <= 1)
     {
         imgbIzq.Enabled = false;
     }
     if (cantp <= ultp)
     {
         imgbDer.Enabled = false;
     }
 }