J
jan v
hi,
im trying to get a dynamic questionnaire running on asp.net. But i get a
stack overflow exception.
this is my code, in the tblQuestions datatable there are only 4 datarows.
foreach (DsQuestionList.tblQuestionsRow dr in
this.dsQuestionList.tblQuestions.Rows)
{
Questions q = new Questions();
q.questionID =
int.Parse(dr[this.dsQuestionList.tblQuestions.QuestionIDColumn].ToString());
this.plhQuestions.Controls.Add(q);
}
now when i do
this.plhQuestions.Controls.Add(LoadControl("Questions.asx"));
i does display the 4 controls but this way i cant set the ID of the question
he has to show.
plhQuestions (is a placeholder control)
Does anyone have an idea?
my e-m-a-i-l is (whithout the dashes) (e-mail address removed)
(vercauteren ) i will check back in theis newsgroup.
Thank you
im trying to get a dynamic questionnaire running on asp.net. But i get a
stack overflow exception.
this is my code, in the tblQuestions datatable there are only 4 datarows.
foreach (DsQuestionList.tblQuestionsRow dr in
this.dsQuestionList.tblQuestions.Rows)
{
Questions q = new Questions();
q.questionID =
int.Parse(dr[this.dsQuestionList.tblQuestions.QuestionIDColumn].ToString());
this.plhQuestions.Controls.Add(q);
}
now when i do
this.plhQuestions.Controls.Add(LoadControl("Questions.asx"));
i does display the 4 controls but this way i cant set the ID of the question
he has to show.
plhQuestions (is a placeholder control)
Does anyone have an idea?
my e-m-a-i-l is (whithout the dashes) (e-mail address removed)
(vercauteren ) i will check back in theis newsgroup.
Thank you