protected void btnDelete_Click(object sender, EventArgs e)
 {
     if (Session["EmployeeFormID"].ToString() != "" && long.TryParse(Session["EmployeeFormID"].ToString(), out _PKID))
     {
         _PKID = long.Parse(Session["EmployeeFormID"].ToString());
         _permission = new PermissionClass(_PKID);
         _permission.deleteRecord(_PKID);
         Session["EmployeeFormID"] = "";
     }
     fillGridView();
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["EmployeeFormID"].ToString() != "" && long.TryParse(Session["EmployeeFormID"].ToString(), out _PKID))
     {
         _PKID = long.Parse(Session["EmployeeFormID"].ToString());
         if (!Page.IsPostBack)
         {
             Session["Permission"] = _permission = new PermissionClass(_PKID);
             displayRecord();
             PopulateDropDownList();
         }
         _permission = (PermissionClass)Session["Permission"];
     }
     else
     {
         if (!Page.IsPostBack)
         {
             Session["Permission"] = _permission = new PermissionClass();
             PopulateDropDownList();
         }
         _permission = (PermissionClass)Session["Permission"];
     }
 }