Hi,
I am building a webpage for Surveys.
I have many surveys and Each survey has many questions that change periodically.
I want to build the survey pages so that the questions are displayed dynamically by reading from a database. Thats not a problem.
The problem is that I have to create server controls for each question that will contain the answer. Answers may be text or multi choice. I have the datamodel.
All I have to do is using C# and asp.net loop through a dataReader and based on the question type create a proper server control.
The problem is that I have to declare each server control, so I can't dynamicall loop through the reader and create different controls with different names on the fly.
What options to I have?
Thanks
I am building a webpage for Surveys.
I have many surveys and Each survey has many questions that change periodically.
I want to build the survey pages so that the questions are displayed dynamically by reading from a database. Thats not a problem.
The problem is that I have to create server controls for each question that will contain the answer. Answers may be text or multi choice. I have the datamodel.
All I have to do is using C# and asp.net loop through a dataReader and based on the question type create a proper server control.
The problem is that I have to declare each server control, so I can't dynamicall loop through the reader and create different controls with different names on the fly.
What options to I have?
Thanks