protected void btnsarch_Click(object sender, EventArgs e)
        {
            try
            {
                DataTable Student_dt = null;
                DataTable StuDT      = StudentResult.GetAllResultDataByStId(null, int.Parse(Session["SID"].ToString()));
                if (StuDT != null)
                {
                    try
                    {
                        Student_dt = StuDT.Select("ExamId= " + drpExam.SelectedValue).CopyToDataTable();

                        if (Student_dt != null && Student_dt.Rows.Count > 0)
                        {
                            GvwResult.DataSource = Student_dt;
                            GvwResult.DataBind();
                        }
                    }
                    catch
                    {
                        GvwResult.DataSource = Student_dt;
                        GvwResult.DataBind();
                    }
                }
            }
            catch
            {
            }

            //else
            //{
            //    //MultiView1.ActiveViewIndex = -1;
            //}
        }
        protected void GvStudent_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            // StudentMst.Delete(Convert.ToInt32(GvwResult.DataKeys[e.RowIndex].Value));
            if (Session["SID"] != null)
            {
                DataRow StaffDT = StaffMst.GetDataByKey(int.Parse(Session["SID"].ToString()));


                if (StaffDT != null && StaffDT["StdId"].ToString() != "")
                {
                    DataTable Student_dt = StudentResult.GetAllResultDataByStId(int.Parse(StaffDT["StdId"].ToString()));
                    GvwResult.DataSource = Student_dt;
                    GvwResult.DataBind();
                }
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == false)
            {
                try
                {
                    DataTable StuDT = StudentResult.GetAllResultDataByStId(null, int.Parse(Session["SID"].ToString()));

                    GvwResult.DataSource = StuDT;
                    GvwResult.DataBind();
                }
                catch (Exception ex)
                {
                }

                BindExam();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Page.IsPostBack == false)
            {
                if (Session["SID"] != null)
                {
                    DataRow StaffDT = StaffMst.GetDataByKey(int.Parse(Session["SID"].ToString()));


                    if (StaffDT != null && StaffDT["StdId"].ToString() != "")
                    {
                        DataTable Student_dt = StudentResult.GetAllResultDataByStId(int.Parse(StaffDT["StdId"].ToString()));
                        GvwResult.DataSource = Student_dt;
                        GvwResult.DataBind();
                    }
                }
                BindExam();
            }
        }