473,406 Members | 2,816 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,406 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 1221
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.