now this is something hard and i hope that someone knows how to do it
lets say that i have a table in the database named "Test"
the table contains this data
What is your name? ________________Txt
How are you?______________________Rad
the webform has only a Button named "Build" for example and a Grid View
the task is:
At runtime when you press the button "Build" the application do 3 things:
1- fill the first column of Grid View with the Questions from the table
this is easy to do
but the second and third are somehow complicated
2- whereever the Type in the tabel "Test" is "Txt" the application create a TextBox control and place it in the second column of the Grid View next to the question that has a Txt type
3- whereever the type is "Rad" the application create a RadioButtion control and place it in the second column of the Grid View next to the question that has a Rad type
does anyone know how to do it?