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

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

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