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(); }