Results 1 to 10 of 10

Thread: How to Create a Dynamic Questionnaire

  1. #1

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    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

  2. #2
    Addicted Member
    Join Date
    Mar 2007
    Location
    San Pedro de Macoris, Dominican Republic
    Posts
    211

    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?

  3. #3
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: How to Create a Dynamic Questionnaire

    I agree, create the design and codes first...After that,if you encounter errors post it here... :-)
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  4. #4
    Addicted Member
    Join Date
    Mar 2007
    Location
    San Pedro de Macoris, Dominican Republic
    Posts
    211

    Re: How to Create a Dynamic Questionnaire

    http://www.asp.net/general/videos/le...-quiz-engine-3
    This video and its follow up might help you a lot.
    Last edited by pukisoft; Dec 1st, 2011 at 11:08 AM. Reason: gramatical correction

  5. #5

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    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.

  6. #6
    Addicted Member
    Join Date
    Mar 2007
    Location
    San Pedro de Macoris, Dominican Republic
    Posts
    211

    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!

  7. #7

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    Re: How to Create a Dynamic Questionnaire

    Thanks for the Link. i am just looking for a better way of doing things.

  8. #8
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    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!
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  9. #9

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    830

    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.

  10. #10
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    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
  •  



Click Here to Expand Forum to Full Width