Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

Sponsored Links

Discuss "go page to page questionaire app" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Closed Thread « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old April 26th, 2008, 02:59 PM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Question go page to page questionaire app

Hey guys its peeb, i'm practicing on the questionaire app that i'll probably begin officially working on this next week. I'll have a month to build it. I've never done a questionaire app.


Below is a link to a sample questionaire online written in classic asp. I"m going to kind of mirror this online survery to build the .net survey app.
LINK:Hosted Survey

Now when you begin the questionaire, it gives you question and you hit next to go to the next page of questions.

My question is how is it going to the next page when you hit next, but still be on the same takesurvey.asp page? I'm like they have to have created several pages that have the different questions on it, but it must doing something i'm not aware of.

Also they have "finish later" button, obviously this button will save your work, in my case save it in sql. And then later you can continue and it shows the page that you were last on.

This functionality I don't understand. I know how to retreive data from sql, but how can I retreive the page that the user was last on when they saved their work?


Any help would very much be appreciated, thanks.

Last edited by richyrich; May 6th, 2008 at 11:21 AM. Reason: Removed [SOLVED] from title
Sponsored Links
  #2  
Old April 26th, 2008, 03:41 PM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft SQL Server Microsoft Windows Microsoft .Net Classic ASP 
Total Awards: 4

Default

They may be storing the page information in a cookie or session variable and then querying the database for questions that belong to that page. Or, if the questions are entered statically into the page code, they are probably using SELECT CASE statements to display the appropriate set of questions based off of the cookie or session value.

In .Net, you have a Wizard Control which allows for this type of appearance. You can display one form, click next, and then a new form will be displayed. Do some research on the wizard control and that should help you design your questionaire.

Wizard Class (System.Web.UI.WebControls)
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

Join our Folding team: DeveloperBarn Folding
  #3  
Old April 26th, 2008, 03:46 PM
Barn Frequenter

 
Join Date: Mar 2008
Posts: 174
Thanks: 14
Thanked 0 Times in 0 Posts
Rep Power: 1
peebman2000 is an unknown quantity at this point
Thumbs up reply

Hey thanks jmurrayhead, I was going to use the wizard control, but I saw that link and the classic asp survey and i'm like how are they doing that.

Okay i'll use the wizard control. thanks again.

Quote:
Originally Posted by jmurrayhead View Post
They may be storing the page information in a cookie or session variable and then querying the database for questions that belong to that page. Or, if the questions are entered statically into the page code, they are probably using SELECT CASE statements to display the appropriate set of questions based off of the cookie or session value.

In .Net, you have a Wizard Control which allows for this type of appearance. You can display one form, click next, and then a new form will be displayed. Do some research on the wizard control and that should help you design your questionaire.

Wizard Class (System.Web.UI.WebControls)
  #4  
Old April 26th, 2008, 04:42 PM
jmurrayhead's Avatar
The Barnfather

 
Join Date: Mar 2008
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft SQL Server Microsoft Windows Microsoft .Net Classic ASP 
Total Awards: 4

Default

Indeed, the Wizard Control will easily give you the effect you are after. Glad I could help

*Administrative Note* This thread will now be closed and marked as solved. The original poster may mark this thread as unsolved and reopen it if he/she has further questions on this topic. To mark your thread as 'Unsolved', use the 'Thread Tools' menu at the top of the posting.
Closed Thread

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -4. The time now is 07:27 PM.



Content Relevant URLs by vBSEO 3.2.0