Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 6th, 2009, 12:14 AM
Registered User
 
Join Date: Jan 2005
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Survey: question/response + Drill questions

Hi, Thank you for this great book especially in handling Stored Procedures and BLL & DAL.
Ref to ch 4, Survey engine.
Is there any ideas on how you can handle adding different kind of question than "text" and the answer will not be in A,B,C,D; the answer could be option box or check box or a Date.
Also if the question require drill down (branched question) meaning based on the answer you can show/hide the following question.
Your help will be greatly appreciated

I think the structure of the Question table will be changed.
Can you give us just some ideas.
Thanks,
 
Old January 7th, 2009, 03:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I didn't write this chapter, so I don't know the design of the application too well.

Anyway, what you can do is store the questions and answers in XML. You could create a Question class and an Answer class that both inherit XmlDocument. You can then add methods like AddQuestion or GetAnswer to these classes that add (or select) the right XML nodes from the internal XmlDocument. This gives you a flexible way to add and retrieve questions. Since it's easy to serialize such a class to a string (or to the new Xml data type in SQL Server), it's easy to save and retrieve your question data in a database.

Hope this gives you some ideas. Working with dynamic questionnaires is not an easy thing to do... Good luck ;-)

Cheers,

IMar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Download Question "Response.AppendHeader" aspdewd ASP.NET 2.0 Basics 0 November 23rd, 2007 03:42 PM
Drill-Through baaul BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 September 23rd, 2007 08:08 PM
Survey App Question flsimmons BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 May 26th, 2006 03:14 PM
how can i handle 3 question in a survey blueguy Classic ASP Basics 6 October 24th, 2004 06:41 PM
Survey Question! NeedASP Classic ASP Databases 0 April 9th, 2004 12:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.