private void AddUpdateFAQTopics()
    {
        BLL.FAQTopicLib oFAQTopicLib = new BLL.FAQTopicLib();

        Entity.FAQTopicInfo oFAQTopicInfo = new Entity.FAQTopicInfo();
        oFAQTopicInfo.Int_FAQTopicId = 0;
        oFAQTopicInfo.DtCreatedOn = DateTime.Now;
        oFAQTopicInfo.StrFaqTopic = txtTopic.Text.Trim();
        oFAQTopicInfo.StrCreatedBy = AppLib.GetLoggedInUserName();

        if (ViewState["Int_FAQTopicId"] != null)
        {

            oFAQTopicInfo.Int_FAQTopicId = Convert.ToInt32(ViewState["Int_FAQTopicId"]);
            if (oFAQTopicLib.UpdateFAQTopicDetails(oFAQTopicInfo))
            {
                lblMsg.Text = "FAQ Topic has been updated successfully.";
                ViewState["intNewsLetterId"] = null;
                ViewState["strOldFileName"] = null;
                ClearControls();
                BindFAQTopics();
            }
            else
            {
                lblMsg.Text = "FAQ Topic already exists.";
            }
        }
        else
        {
            if (oFAQTopicLib.SaveFAQTopicDetails(oFAQTopicInfo))
            {
                lblMsg.Text = "FAQ Topic has been added successfully.";
                ClearControls();
                BindFAQTopics();
            }
            else
            {
                lblMsg.Text = "FAQ Topic already exists.";
            }
        }
        oFAQTopicLib = null;
        oFAQTopicInfo = null;
    }