Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Dynamic Questionairre

Author  Topic 

MichaelP
Jedi Yak

2489 Posts

Posted - 2003-10-28 : 20:32:18
Has anyone seen any samples of an ASP.net dynamic questionaiire? I've got the database stuff under control, but I'm not exactly sure how to impliment the UI. I've done this in ASP 3.0 by doing a lot of looping, and i'd like to come up with a cleaner solution for ASP.net.

What I've got is a list of questions in a database. I want to render out the questions, (each user could have a different set of questions, thus the dynamic part) and collect the results. The way I handled it in the past was to loop through the Request.Form() collection and save everything to the database that way. That works, but I wonder if there's a "better" way with ASP.net. I need to store the results after each "page" of questions is answered, because there are a lot of questions. If a user decided to exit the page, they'd lose everything if I stored the answers in viewstate.

Any help or pointers would be great!

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2003-10-28 : 21:09:44
Microsoft has provided some useful application blocks as a framework for .net development.
There is a "User Interface Process Application Block" which is designed to:

-Separate the control flow (navigation) from the pages, forms, and controls that the user interacts with.
-Abstract state management for a use case from the forms and controls working on that data.
-Use the same programming model for the code that manages control flow and state for different types of applications, including Windows-based applications, Web applications, and device applications.
-Write applications that manage users' tasks in complex scenarios; for example, reassigning tasks to different users or letting a user resume interrupted tasks.

Maybe this will help stimulate some ideas/thought...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/uip.asp
Go to Top of Page
   

- Advertisement -