Dynamic controles

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
 
J

jan v

Apperently if i rename the getter questionID to ID it works, is it possible
that asp.net isn't case sensitive?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,012
Latest member
RoxanneDzm

Latest Threads

Top