protected void Page_Load(object sender, EventArgs e)
        {
            txtNationalCode.Focus();
            RdbChangeReason.Attributes.Add("onchange", "return  selectValue();");
            txtNationalCode.Attributes.Add("onkeypress", "return fnAllowOnlyDigits();");
            txtHadeseDate.Attributes.Add("maxlength", "10");
            txtHadeseDate.Attributes.Add("onkeydown ", "return IsNumeric(this);");
            txtHadeseDate.Attributes.Add("onkeyup", "return ValidateDateFormat(this);");
            if (!IsPostBack)
            {
                DataSet ds = DataAccessFactory.CreateDeathReasonData().GetAllDeathReaons();

                if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
                {
                    DrdHadeseReason.DataSource = ds;
                    DrdHadeseReason.DataBind();
                }
                DrdNaghType.Items.Add("Desease");
                DrdNaghType.Items.Add("Accssident");
                //DisableTypesData data1 = new DisableTypesData();
                //data1.GetAllDisableTypes();
                DataSet ds1 = DataAccessFactory.CreateDisableTypeData().GetAllDisableTypes();
                if (ds1 != null && ds1.Tables.Count > 0 && ds1.Tables[0].Rows.Count > 0)
                {
                    ListNaghsType.DataSource = ds1;
                    ListNaghsType.DataBind();
                }
            }
        }