Esempio n. 1
0
    private void LoadGrid()
    {
        string userid = Request.QueryString["val1"];
        BLItem objBL  = new BLItem(); // declare and initialize BLItem object
        int    temp   = objBL.check_Emp_username(userid);

        if (temp == 1)
        {
            string image = objBL.get_image_from_emp(userid);
            if (image.Length <= 0)
            {
                image = "uploadedimages/default.png";
            }
            //   Image1.ImageUrl = image;

            DataTable dt = objBL.GetEmployee(userid, 0);
            grdContact.DataSource = dt;
            grdContact.DataBind();
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Student Does Not Exist.')", true);
            //Response.Redirect("View_Student.aspx");
        }
    }