473,326 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Form information retrieval

Hi. I have a little bit of a problem. I'm working on a school project and can't figure this one thing out. I have a program that has 21 forms, the first one being the home page and the others being math questions. It's a program I'm developing for grade three students. What I'm stuck on is retrieving the information from the other 20 forms and inputting it onto a textbox or whatever i need to on the home page to show the kids how well they did. This also encompases determining whether the question is right or wrong. Any help would be greatly appreciated. Thank you.
Nov 18 '05 #1
1 1215
I assume the users progress through the question forms in a linear fashion?
If so, you might be looking at it the wrong way. You shouldn't try to read
the results from each form (these webforms normally* only exist on the
server momentarily, as they are being rendered).

Instead, as you go through the forms, you can add the results or whatever
information you need to an array or other data structure which is stored in
the Session object. The Session object is a place to store information on
the server, just for the particular user using the webapp at the time. The
array of information that you store in the Session object will still be
available to you on the results page.

As an example, the code could be something like this (in C#, very similar in
VB).

On your first page, store the array in the Session:
Session["Results"] = new ArrayList();

on question pages:
to get the array:
ArrayList arResults = (ArrayList)Session["Results"];

add something to the array:
arResults.Add(new Result(....));
on results page:
ArrayList arResults = (ArrayList)Session["Results"];

// iterate through
foreach (Result res in arResults)
{
... do something for each result
}

I hope thats enough to give you some ideas,
Cheers,
Pete Beech

* Sometimes the system holds onto them, e.g. if you set an event on some
Application or Session level object to point to an event handler on a
particular instance of a form.
"Sway" <ol*****@hotmail.com> wrote in message
news:18**********************************@microsof t.com...
Hi. I have a little bit of a problem. I'm working on a school project and

can't figure this one thing out. I have a program that has 21 forms, the
first one being the home page and the others being math questions. It's a
program I'm developing for grade three students. What I'm stuck on is
retrieving the information from the other 20 forms and inputting it onto a
textbox or whatever i need to on the home page to show the kids how well
they did. This also encompases determining whether the question is right or
wrong. Any help would be greatly appreciated. Thank you.
Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Shannon | last post by:
Hi everyone, I am trying to post some data to a form using the XMLHTTP object, and have run into a problem trying to find the proper location of the receiving page. The form points to a...
1
by: Shannon | last post by:
Hi, all -- this is a weird question that does not really have to do with javascript, but I used to spend a lot of time here, and am hoping someone might be able to help... I am trying to...
3
by: Hodad | last post by:
I would like to adapt, as much as possible, the appearance and color red of the font in this button: <P><CENTER><BUTTON VALUE="SUBMIT"><A...
0
by: web1110 | last post by:
Hi again, I am referring an earlier question here trying to enlarge upon the concept I am pursuing.: Each object is a subassembly. They are all significantly different in detail and content...
1
by: Sway | last post by:
Hi. I have a little bit of a problem. I'm working on a school project and can't figure this one thing out. I have a program that has 21 forms, the first one being the home page and the others being...
8
by: yawnmoth | last post by:
Say I have the following HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> <form action="">
7
by: php newbie | last post by:
I am creating a form Form1.php that posts to the another form Form2.php. I have input validations on the first form. I need the user to go to the next form ONLY if the inputs from the user are...
1
by: sephali | last post by:
Sir, I'm using Ms Access 2000 for crearting a database based on the information extracted from government reports. My aim is to preapare an information retrieval system. For this purpose, I...
9
by: dhtml | last post by:
I have written an article "Unsafe Names for HTML Form Controls". <URL: http://jibbering.com/faq/names/ > I would appreciate any reviews, technical or otherwise. Garrett --...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.