Author: gbeford | Posted on: 6/11/2009 11:41:47 AM | Views : 447

 I have a list that I am passing to my form. It returns a list of questions... each question will need to build a control with it. what i am a bit confused at is how to build the controls from the list...  I have a control type coming back with the questions txt.  so ex: one question that comes back will need to build a radiobutton list... can someone show me how to do this... This is what i have so far... it might be something really silly... but i have been expriencing issues with my VS2008 as well...  :(
 the level that confuses me is how to pull the control type from the list so i can do an if statement to build whatever control that it needs.

 
//BUILD THE CONTROLS FROM THE LIST OF QUESTIONS
public void GetQuestions()
{
   List<PulseSurveyQuestions> questions = PulseSurveyQuestions.getQuestions(surveyType);
   if (surveyType == "Video")
    {  ...

Go to the complete details ...