protected void btnSave_Click(object sender, EventArgs e)
        {
            clsPostMortem postmortem = new clsPostMortem();

            postmortem.POMOFIRNo = Convert.ToInt32(txtFirNo.Value);
            postmortem.POMOInvestigationResult = txtResultofMortem.Value;
            postmortem.POMOSex             = txtSex.Value;
            postmortem.POMODeathDate       = txtDateofDeath.Value;
            postmortem.POMOCaseDescription = txtDescriptionofCase.Value;
            postmortem.POMODoctorName      = txtDrName.Value;
            postmortem.POMOPoliceStation   = txtPoliceStation.Value;

            //postmortem.AddRecPostMortem(postmortem);

            try
            {
                Boolean success = postmortem.AddRecPostMortem(postmortem);
                displayPostMortemCount();
            }
            catch (Exception ex)
            {
                throw;
            }

            ClearAllTextBox();

            lblMessage.Text = "The Record has been created successfully.";
        }
        public void displayPostMortemCount()
        {
            clsPostMortem count = new clsPostMortem();

            txtPostMortelNo.Value = count.getPostMortemCount().ToString();
        }