protected void btnDelete_Click(object sender, EventArgs e)
    {
        try
        {
            PatientReferrerDB.UpdateSetEPCRefInactive(Convert.ToInt32(lblReferrerRegisterID.Text), this.PatientID); // update inactive means when they add, we have to reactivate rather than add new row
        }
        catch (ForeignKeyConstraintException fkcEx)
        {
            if (Utilities.IsDev())
            {
                SetErrorMessage("Can not delete because other records depend on this : " + fkcEx.Message);
            }
            else
            {
                SetErrorMessage("Can not delete because other records depend on this");
            }
        }

        InitForm();
    }