Ejemplo n.º 1
0
        public void bind()
        {
            int       empid = Int32.Parse(Session["UserID"].ToString());
            VacancyBL vac2  = new VacancyBL();
            DataTable dt1   = vac2.GetVacancy(empid);

            gv1.DataSource = dt1;
            gv1.DataBind();
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["UserName"] == null)
     {
         Response.Redirect("~/WelcomePage.aspx");
     }
     else
     {
         int empid = Int32.Parse(Session["UserID"].ToString());
         lblUser.Text = "Welcome  " + Session["UserName"].ToString();
         VacancyBL vac1 = new VacancyBL();
         DataTable dt1  = vac1.GetVacancy(empid);
         gv1.DataSource = dt1;
         gv1.DataBind();
     }
 }