473,385 Members | 1,863 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,385 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 1220
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 --...
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...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.