Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 July 20th, 2004, 11:04 AM
Authorized User
 
Join Date: Feb 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing page sequence

I've built a training tool/quiz, but I'd like to be able to offer the administrator a way to change the sequence of how the pages are displayed. Currently, the fields look like this:

ID
PageTitle
PageContent
QuestionText
QuestionType (radio or checkbox)
AnswerA
AnswerB
AnswerC
AnswerD
CorrectAnswers

How do I do this? If the explanation is too lengthy for this forum, maybe someone can provide a link to a tutorial? Any help would be greatly appreciated.

__________________________________________________ _____________

Confidence is what you feel when you do not truly understand the situation.
__________________
__________________________________________________ _____________

Confidence is what you feel when you do not truly understand the situation.
 
Old July 20th, 2004, 08:23 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

hello,

  Can u post it clearly what u need?



 
Old July 20th, 2004, 09:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi abq23,

You mean the displaying the questions in sequence that you wish... ?

Say if you have 5 questions, then that can be ordered in any sequence you wish, something like 12345 or 34215 or 43521 ... ???

Is this what you are looking for?

Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old July 21st, 2004, 09:58 AM
Authorized User
 
Join Date: Feb 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The admin screen I've developed allows the admin to add:

1. The page title
2. The text content of the page
3. A quiz question
4. The ability to identify whether the quiz should display as checkboxes or radio buttons
5. The ability to add up to 10 possible answers
6. The ability to identify which answer is correct.

Once the is saved, this recordset constitutes one "page" in the training presentation. What I'd like to be able to do is allow the admin (perhaps through a separate admin form) to change the sequence of how the pages are displayed. In other words, if she decides that the presentation would flow better if Page #7 followed Page #3, how do I create that sort of capability?

__________________________________________________ _____________

Confidence is what you feel when you do not truly understand the situation.
 
Old July 21st, 2004, 09:55 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi there,

You can add another column to that table say "DisplaySequence" which is capable of storing numbers in it.

In addition to you list add another "7. The ability to sort the pages in a required sequence." for the admin. Then list all the PageTitles/Quiz and a textbox besides each on a page and let the administrator enter the numbers in each textbox on what sequence it got to be displayed and update the DisplaySequence column for relavant rows.

When the quiz/page titles are selected from the table, sort that by the DISPLAYSEQUENCE column in ascending order.

Select * from TABLENAME order by DISPLAYSEQUENCE asc

This should help you achieve that.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old July 21st, 2004, 11:32 PM
Authorized User
 
Join Date: Feb 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yet another case of me making this far more difficult than it needs to be... :)

That will certainly work for this particular version. Thanks for your help.

__________________________________________________ _____________

Confidence is what you feel when you do not truly understand the situation.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Page Color darkestangel1980 CSS Cascading Style Sheets 6 February 6th, 2008 12:40 PM
Changing color of page-numbers in DataGrid anup_daware ASP.NET 1.0 and 1.1 Basics 2 October 18th, 2007 07:04 AM
Print a page without changing page setup nrajeshatwork Servlets 1 May 23rd, 2007 10:09 AM
Problem Changing of Page Tere Crystal Reports 0 September 25th, 2003 08:00 PM





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