コード例 #1
0
ファイル: AddingTestPage.aspx.cs プロジェクト: a1442456/Tests
        protected void btnAddQuestion_Click(object sender, EventArgs e)
        {
            if (txtbxQuestion.Text != "")
            {
                QuestionDAL qDAL  = new QuestionDAL();
                SubThemeDAL stDAL = new SubThemeDAL();

                QuestionABC quest = new QuestionABC(0, txtbxQuestion.Text, stDAL.GetSubThemeIdBySubThemeNameViaStoredProc(ddlSubTheme.SelectedValue));

                qDAL.InsertQuestionViaStoredProc(quest);

                txtbxQuestion.Text = "";
            }

            GetViewOfQuestion();
            GetViewOfAnswers();
        }