|
-
Dec 1st, 2011, 09:49 AM
#1
Thread Starter
Fanatic Member
How to Create a Dynamic Questionnaire
Good Day Fellows
i have a Dynamic Questionnaire that is created using dynamic data from the Database. My data in the Database contains the fields like
QuestionID - Primary key
Question - The Question Text
Answer - The Answer
Required - This is a Validation , i used this to enable the Required validator in asp.net
DataType - This is the Datatype, it can be a Heading also.
ReadOnly - This check if that Question is a Read-only , This happens most of the time , when it is a Calculated Field, meaning its values depends on other fields values.
Order - This is the order the Questions will appear
Section - This is the section, So the Questions are Grouped. Normaly in Page1 you will have Questions for Section 1.......
Deleted- This is a bit Field , its either 1 or 0 , 1 is active, so this helps be to Filter only active Questions
QuestionType- This is the Type of Control the Data should be Presented with, It can be a Dropdown ,checkbox or textbox..
QT_ID - There can be many Templates of the Question , this makes sure we use the Correct Template for the Questionnaire
So with this kind of Data , i want to use know , what asp.net Control can i use to achieve this.
Thanks
-
Dec 1st, 2011, 10:25 AM
#2
Addicted Member
Re: How to Create a Dynamic Questionnaire
The controls to use are check boxes, radio buttons, and html elements suited for grouping other elements.
Your question is very broad as it only describes the data schema.
Have you at least tried something? I mean, you don't expect people here to just do it for you, right?
-
Dec 1st, 2011, 10:59 AM
#3
Re: How to Create a Dynamic Questionnaire
I agree, create the design and codes first...After that,if you encounter errors post it here... :-)
-
Dec 1st, 2011, 11:06 AM
#4
Addicted Member
Re: How to Create a Dynamic Questionnaire
Last edited by pukisoft; Dec 1st, 2011 at 11:08 AM.
Reason: gramatical correction
-
Dec 1st, 2011, 11:53 AM
#5
Thread Starter
Fanatic Member
Re: How to Create a Dynamic Questionnaire
Good Day Guys
@KGComputers
@pukisoft
You probably have not clearly read my post , I was only asking an advice , what Control would you use to achieve this, i have not said "give me a Code" i think next time before post , you should first check who is asking the question, then you can answer.
-
Dec 1st, 2011, 12:02 PM
#6
Addicted Member
Re: How to Create a Dynamic Questionnaire
Then my bad. But in my defense you did phrase it poorly. Which I found it odd since I've seen a couple of articles in the code project which, I believe were written by you. In either case I gave you my opinion and a link, which I think you may find useful.
Last edited by pukisoft; Dec 1st, 2011 at 12:05 PM.
Reason: grammar!
-
Dec 1st, 2011, 12:04 PM
#7
Thread Starter
Fanatic Member
Re: How to Create a Dynamic Questionnaire
Thanks for the Link. i am just looking for a better way of doing things.
-
Dec 1st, 2011, 12:18 PM
#8
Re: How to Create a Dynamic Questionnaire
When we venture into developing large scale projects like this, we make sure to create the UI in MS Visio first. In that way,we could identify the ASP.NET controls associated with it. Create a mock test layout and then associate it with the controls.
We had a project similar to CISCO online tests..We did compare different online tests before arriving on which controls to use on our specific projects. In other words did some research on this type of projects.
Here is an example which you have specified...
QuestionType- This is the Type of Control the Data should be Presented with, It can be a Dropdown ,checkbox or textbox..
Personally, i would refer to combo box, but again, i dont know what the question type values are.Is it multiple choice exam? or similar to MIcrosoft exams or what?
Cheers!
-
Dec 1st, 2011, 12:29 PM
#9
Thread Starter
Fanatic Member
Re: How to Create a Dynamic Questionnaire
hi KGComputers
Thanks for the reply. Things are normally done as you said. but i inherited the project. It is not a multiple-choice question, there are points when text-boxes and drop-downs are created dynamically. Some time ago i used a nice Telerik control to do this, but it was silverlight but now this is an asp.net project.
-
Dec 5th, 2011, 02:59 AM
#10
Re: How to Create a Dynamic Questionnaire
Telerik also do ASP.Net Controls, not just Silverlight.
Gary
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|