protected void setupQuestions() { SC_GetOptDecisionList godl = new SC_GetOptDecisionList(); { godl.CatID = this.category; godl.GetData(); if (godl.Tables.Count >= 1 && godl.Tables[0].Rows.Count > 0) { this.Questions = godl.Tables[0]; DataTable tempTable = Questions.Clone(); tempTable.ImportRow(Questions.Rows[Questions.Rows.Count - 1]); this.QuestionCount = Convert.ToInt16(tempTable.Rows[0][2]); } } }
protected void setupQuestions() { SC_GetOptDecisionList godl = new SC_GetOptDecisionList(); { godl.CatID = this.category; godl.GetData(); if (godl.Tables.Count >= 1 && godl.Tables[0].Rows.Count > 0) { this.Questions = godl.Tables[0]; DataTable tempTable = Questions.Clone(); tempTable.ImportRow(Questions.Rows[Questions.Rows.Count - 1]); this.QuestionCount = Convert.ToInt16(tempTable.Rows[0][2]); } } }