protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                int    max    = 0;
                Sesion Sesion = new Sesion();
                Sesion = (Sesion)Session["Sesion" + Session.SessionID];

                CN_CatProducto CnCatProducto = new CN_CatProducto();
                CnCatProducto.ConsultarMaxLocal(Convert.ToInt32(Sesion.Id_Cd_Ver), Sesion.Id_Emp, Sesion.Emp_Cnx, ref max);
                Session["IdCategoria" + Session.SessionID] = cmbCategorias.SelectedValue;
                Session["IdLocal" + Session.SessionID]     = Sesion.Id_Cd_Ver.ToString().Substring(0, 2) + cmbCategorias.SelectedValue + max.ToString("0#");
                Response.Redirect("CatProductos.aspx?id=1", false);
            }
            catch (Exception ex)
            {
                ErrorManager(ex, new System.Diagnostics.StackTrace().GetFrame(0).GetMethod().Name);
            }
        }