protected void bt_AddOption_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["ID"] > 0)
        {
            QNA_QuestionBLL q = new QNA_QuestionBLL((int)ViewState["ID"]);

            QNA_QuestionOption o = new QNA_QuestionOption();
            o.OptionName = tbx_OptionName.Text;
            o.NextQuestion = int.Parse(ddl_NextQuestion.SelectedValue);
            o.CanInputText = ddl_YesOrNo.SelectedValue;
            o.Question = (int)ViewState["ID"];
            q.AddDetail(o);

            BindGrid();

            tbx_OptionName.Text = "";
            ddl_NextQuestion.SelectedValue = "0";
            ddl_YesOrNo.SelectedValue = "N";
        }
    }
    protected void bt_AddOption_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["ID"] > 0)
        {
            QNA_QuestionBLL q = new QNA_QuestionBLL((int)ViewState["ID"]);

            QNA_QuestionOption o = new QNA_QuestionOption();
            o.OptionName   = tbx_OptionName.Text;
            o.NextQuestion = int.Parse(ddl_NextQuestion.SelectedValue);
            o.CanInputText = ddl_YesOrNo.SelectedValue;
            o.Question     = (int)ViewState["ID"];
            q.AddDetail(o);

            BindGrid();

            tbx_OptionName.Text            = "";
            ddl_NextQuestion.SelectedValue = "0";
            ddl_YesOrNo.SelectedValue      = "N";
        }
    }