public void CaseLaws()
        {
            #region  Old Code

            //if (rdbUploadType.SelectedValue == "Upload the Document")
            //{
              //  UploadPDF();
            //}
            //STCaselaws_GetAllTableAdapter insertCaseLaws = new STCaselaws_GetAllTableAdapter();
            GetAllCaseLawsTableAdapter insertCaseLaws = new GetAllCaseLawsTableAdapter();
            DateTime dt = Convert.ToDateTime(txtCLdateofdec.Text);
            string CourtNa = ddlCLlawscourt.SelectedValue == "Other" ? ddlOtherCourt.SelectedValue : ddlCLlawscourt.SelectedValue;
            if (hdnId.Value.Length > 0)
            {
                int? id = Int32.Parse(hdnId.Value);
                insertCaseLaws.UpdateCaseLawsByID(CourtNa, txtCLcasenumber.Text, txtCLAPPELLANTParty.Text, txtCLrespondentparty.Text,ddlBench.SelectedValue??"", txtCLjudgesname.Text, dt, txtCLJinFavour.SelectedValue, edtCLheadnotes.Content, edtCLcontent.Content, id);
                Server.Transfer("editnotifications.aspx");
            }
            else
            {
                string TGOLC = txtCLcitationyear.Text + "-TGOL-" + txtClNumber.Text + "-" + txtCL.Text;
                int TGOLyear = Convert.ToInt32(txtCLcitationyear.Text);
                insertCaseLaws.Insert(ddlcatagory.SelectedValue, TGOLC, CourtNa, txtCLcasenumber.Text, txtCLAPPELLANTParty.Text, txtCLrespondentparty.Text, txtCLjudgesname.Text, dt, txtCLJinFavour.SelectedValue, edtCLheadnotes.Content, edtCLcontent.Content, TGOLyear, txtClNumber.Text,ddlBench.SelectedValue??"");
                Server.Transfer("uploadnotifications.aspx");
            }
            #endregion
        }