Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["id"] == null || Session["nombre"] == null || Session["rol"] == null || (int)Session["rol"] != 2)
        {
            Session["id"]     = null;
            Session["nombre"] = null;
            Session["rol"]    = null;
            Response.Redirect("Loggin.aspx");
            Response.Cache.SetNoStore();
        }
        Eofertas oferta         = new Eofertas();
        Dofertas ofertacompleta = new Dofertas();

        oferta.Idoferta = Int32.Parse(Convert.ToString(Request.QueryString["valor"]));
        DataTable datos = ofertacompleta.obtenerOferta(oferta);

        DL_oferta.DataSource = datos;
        DL_oferta.DataBind();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["id"] == null || Session["nombre"] == null || Session["rol"] == null || (int)Session["rol"] != 2)
        {
            Session["id"]     = null;
            Session["nombre"] = null;
            Session["rol"]    = null;
            Response.Redirect("Loggin.aspx");
            Response.Cache.SetNoStore();
        }

        UAspirante oferta         = new UAspirante();
        LAspirante ofertacompleta = new LAspirante();

        int       id    = Int32.Parse(Convert.ToString(Request.QueryString["valor"]));
        DataTable datos = ofertacompleta.mostrarOfertaCompleta(id);

        DL_oferta.DataSource = datos;
        DL_oferta.DataBind();
    }