protected void ImageButtonLock_Click(object sender, ImageClickEventArgs e)
    {
        Assessment ass = new Assessment();
        GridViewRow row = ((ImageButton)sender).Parent.Parent as GridViewRow;
        HiddenField HiddenFieldAssessmentID = (HiddenField)row.Cells[0].FindControl("HiddenFieldAssessmentID");
        string OID = HiddenFieldAssessmentID.Value;
        if (ass.GetAssessmentStatusByOID(Convert.ToInt32(OID)) == 1)
        {
            PopulateGrid();
            lblStatus.Text = "This Assessment can not be Locked.It has already been Locked";
        }
        else
        {
            if (ass.UpdateAssessmentStatus(Convert.ToInt32(OID)))
            {
                PopulateGrid();
                lblStatus.Text = "This Assessment  has been locked Successfully";
            }

        }
    }