protected void btnreset_Click(object sender, EventArgs e)
    {
        obj_BAL_Student_Dashboard       = new Student_DashBoard_BLogic();
        obj_Student_Dashboard           = new StudentDash();
        obj_Student_Dashboard.StudentID = AppSessions.StudentID;
        DataSet ds = new DataSet();

        //ddlpackagetype.SelectedIndex = 0;
        //ddlsearchby.SelectedIndex = 0;
        //ddlsearchby.SelectedIndex = 0;
        //txtfromdate.Text = string.Empty;
        //txttodate.Text = string.Empty;
        ds = obj_BAL_Student_Dashboard.BAL_Student_PackageHistory(obj_Student_Dashboard, null, null);
        //ds = obj_BAL_Student_Dashboard.BAL_Student_PackageHistory(obj_Student_Dashboard, ddlsearchby.SelectedItem.ToString().Trim(), ddlpackagetype.SelectedItem.ToString().Trim());
        gvstudentpackagedetails1.DataSource = ds.Tables[0];
        gvstudentpackagedetails1.DataBind();
    }
 private void BindGridPackage()
 {
     try
     {
         obj_BAL_Student_Dashboard       = new Student_DashBoard_BLogic();
         obj_Student_Dashboard           = new StudentDash();
         obj_Student_Dashboard.StudentID = AppSessions.StudentID;
         DataSet ds = new DataSet();
         ds = obj_BAL_Student_Dashboard.BAL_Student_PackageHistory(obj_Student_Dashboard, null, null);
         //ds = obj_BAL_Student_Dashboard.BAL_Student_ExpiredPackageHistory(obj_Student_Dashboard);
         if (ds.Tables[0].Rows.Count > 0 && ds != null)
         {
             gvstudentpackagedetails1.DataSource = ds.Tables[0];
             gvstudentpackagedetails1.DataBind();
         }
     }
     catch (Exception ex)
     {
     }
 }