protected void btnSubmit_Click(object sender, EventArgs e)
    {
        List <ATTAwardPunishment> LSTAward = (List <ATTAwardPunishment>)Session["Award"];

        if (this.grdAward.SelectedIndex > -1 || LSTAward == null)
        {
            LSTAward = (List <ATTAwardPunishment>)Session["PrevAwards"];
        }
        if (Session["Award"] == null && Session["PrevAwards"] == null)
        {
            this.lblStatusMessage.Text = "**Sorry ! No Data To Save";
            this.programmaticModalPopup.Show();
            return;
        }
        try
        {
            if (BLLAwardPunishment.SaveAward(LSTAward))
            {
                this.lblStatusMessage.Text = "**Award for Employee Saved Successfully";
                this.programmaticModalPopup.Show();
                double empid = LSTAward[0].EmpID;
                grdAward.DataSource = BLLAwardPunishment.GetAwards(empid);
                grdAward.DataBind();
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
    protected void grdEmployee_SelectedIndexChanged(object sender, EventArgs e)
    {
        double empid = double.Parse(Server.HtmlDecode(grdEmployee.Rows[grdEmployee.SelectedIndex].Cells[0].Text).ToString());

        Session["SelectedEmp"] = empid;
        List <ATTAwardPunishment> LSTAwards = BLLAwardPunishment.GetAwards(empid);

        this.lblEmpName.Text  = Server.HtmlDecode(grdEmployee.Rows[grdEmployee.SelectedIndex].Cells[5].Text).ToString();
        Session["PrevAwards"] = LSTAwards;
        grdAward.DataSource   = LSTAwards;
        grdAward.DataBind();
    }