all groups > asp.net webcontrols > july 2003 >
You're in the

asp.net webcontrols

group:

Dynamic controles


Dynamic controles jan v
7/31/2003 5:14:37 PM
asp.net webcontrols:
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) v-e-r-c-a-u-t-e-r-e-n@flashmail.com
(vercauteren ) i will check back in theis newsgroup.



Thank you

BUG? jan v
7/31/2003 6:31:15 PM
Apperently if i rename the getter questionID to ID it works, is it possible
that asp.net isn't case sensitive?


[quoted text, click to view]

AddThis Social Bookmark Button