Posted on: 7/30/2013 6:55:27 PM | Views : 206

HI!
I want to know if this is possible. I have a table created in an sql database called Questions. This table holds a questionID, questionText, Question Type and foreign key Template ID. I currently have a gridview displaying one row (based off the foreign key). What I want to do is make certain elements on the page appear dependant on the value of QuestionType. So if the question type = text I want a textbox to appear (currently set as visible = false) or if the questionType = drop down I want four different text boxes to appear. So basically, can I create an if statement saying, if the value under questionType in this selected row is equal to X do this, and if it is equal to Y, do that. thanks guys :) 
...

Go to the complete details ...