473,385 Members | 1,536 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.

Making a multi-page application

I need to develop an application that will span 12 or so pages, and on the
last page, it lets the user review the data and then insert it all. This is
kind of like selling something on eBay, you give it information, click next,
enter more info and then at the end you review and submit the item. I was
thinking about sessions, but some of the fields are pretty big, like
varchar(5000) so I didn't know if there was a way to handle these big
fields.

Thanks,
Drew
Jul 19 '05 #1
9 1521

Send the data from page1 tot page2 and store these in HIDDEN fields, then
you bring the data from the new data and the hidden date to page3 and so on.
Jul 19 '05 #2
I couldn't see the tree for the forest! Thanks so much for your help!

Thanks,
Drew

"John" <n o b o d y@spam.com> wrote in message
news:Xl**********************@phobos.telenet-ops.be...

Send the data from page1 tot page2 and store these in HIDDEN fields, then
you bring the data from the new data and the hidden date to page3 and so on.

Jul 19 '05 #3
On Fri, 03 Sep 2004 13:30:31 GMT, "John" <n o b o d y@spam.com> wrote:
Send the data from page1 tot page2 and store these in HIDDEN fields, then
you bring the data from the new data and the hidden date to page3 and so on.


Or session variables, or update a temporary record on each page, it
depends a lot on what you're doing and why as to which you'd choose.
For example, if this was a report filled out online that would take
the user half an hour, I'd use a temporary record since I'd hate to
lose the first 8 pages when my connection dropped.

Jeff
Jul 19 '05 #4
Or use session variables as in...

http://www.gatewayorlando.com/conten...rch_Submit.asp

David H

Drew wrote:
I couldn't see the tree for the forest! Thanks so much for your help!

Thanks,
Drew

"John" <n o b o d y@spam.com> wrote in message
news:Xl**********************@phobos.telenet-ops.be...
Send the data from page1 tot page2 and store these in HIDDEN fields, then
you bring the data from the new data and the hidden date to page3 and so


on.


Jul 19 '05 #5
On Fri, 03 Sep 2004 12:11:30 -0400, "David C. Holley"
<Da**********@netscape.net> wrote:
Or use session variables as in...

http://www.gatewayorlando.com/conten...rch_Submit.asp

David H


I'd stay away from session variables for what he wants to do. I took
over the development of a similar application with a number of input
screens and a "confirm" screen at the end which did a whole bunch of
calculations when it was submitted. It worked fine with most users,
but there was always some 'difficult' user who would have problems,
eg. some of the session variables on some of the screens would lose
their values and affect the calculation on the last screen. And
there's always the oddball user who refuses to enable cookies and
session variables because of the big "Microsoft conspiracy"...

The database approach ended up working better and was much more
reliable. When the user submits the first page send all the data to a
database. Then retrieve the id of the record that the user inserted.
Then use that id to update the record after each of the subsequent
screens.

If the database isn't an option, go with the hidden form fields and
querystring options. I've had success with those too...

Jul 19 '05 #6
Luis wrote on 04 sep 2004 in microsoft.public.inetserver.asp.general:
I'd stay away from session variables for what he wants to do.


I would not.

Session variables is one of the best things of ASP, making all kinds of
user specific data available to all pages in a session, without depending
on clientside constructions that can easily be changed by the first whizkid
of the block.

If a user has his session cookie use switched of, you can politely tell him
that he cannot use the functionality offered to all other users.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 19 '05 #7
On Sat, 04 Sep 2004 16:52:56 +0200, Luis <andyza@***webmail***.co.za>
wrote:
On Fri, 03 Sep 2004 12:11:30 -0400, "David C. Holley"
<Da**********@netscape.net> wrote:
Or use session variables as in...

http://www.gatewayorlando.com/conten...rch_Submit.asp

David H


I'd stay away from session variables for what he wants to do.


Session variables in this case make more sense than hidden fields in
query strings. Also harder to spoof.

Jeff
Jul 19 '05 #8
"Drew" <dl****@NOswvtc.state.va.SPAMus> wrote in message
news:uc**************@TK2MSFTNGP11.phx.gbl...
I need to develop an application that will span 12 or so pages, and on the
last page, it lets the user review the data and then insert it all. This
is
kind of like selling something on eBay, you give it information, click
next,
enter more info and then at the end you review and submit the item. I was
thinking about sessions, but some of the fields are pretty big, like
varchar(5000) so I didn't know if there was a way to handle these big
fields.


i'd do what gmail does and create one page of DIV's that are overlayed and
stepped through using document.getelementbyid(id).style.display='block' (or
'hidden')

that way you only have to have two post (at the end), no cookies, session
variables or other crap to worry about - the site loads quickly and the
final page reviews the and submits

see the "mortgage quote" page on www.123mortgagecentre.co.uk to see the DIV
script in action.

mark
Jul 19 '05 #9
I'm not worrying about spoofing at this point. All of this is internal, on
our intranet. I think I will try Luis' advice and insert it into the table,
or maybe I will use a tempdb for this and then insert it all into the
table...

Thanks for all the replies on this subject!
Drew

"Jeff Cochran" <je*********@zina.com> wrote in message
news:41*****************@msnews.microsoft.com...
On Sat, 04 Sep 2004 16:52:56 +0200, Luis <andyza@***webmail***.co.za>
wrote:
On Fri, 03 Sep 2004 12:11:30 -0400, "David C. Holley"
<Da**********@netscape.net> wrote:
Or use session variables as in...

http://www.gatewayorlando.com/conten...rch_Submit.asp

David H


I'd stay away from session variables for what he wants to do.


Session variables in this case make more sense than hidden fields in
query strings. Also harder to spoof.

Jeff

Jul 19 '05 #10

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

Similar topics

12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
3
by: Sandy Bremmer | last post by:
I was curious how one goes about properly creates a table row with multiple TD cells as a single hyperlink because I have seen examples of what I think is invalid and poorly conceived HTML. It...
0
by: VMI | last post by:
If I'm in a multi-line textbox and I'm writing a postal address (ie. write ist line and press <Enter>, write 2nd line and press <Enter>, etc...) how can I make sure that the Enter key will always...
3
by: usenetaccount | last post by:
In a newly created test app, to maximize client performance I tried to make two SOAP method calls in tandem (the soap methods execute some specified query), as each call includes a large amount of...
351
by: CBFalconer | last post by:
We often find hidden, and totally unnecessary, assumptions being made in code. The following leans heavily on one particular example, which happens to be in C. However similar things can (and...
0
by: Greg | last post by:
I've made a datagrid multiline (for anyone interested, I used an adaptation of the code at http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp). This has introduced a very serious issue: the vertical...
41
by: Zytan | last post by:
Anyone do any tests on it? I would assume it has improved since C's rand(), but who knows. For some reason, and it could just be coincidence, I seem to see patterns. But even a crappy rand()...
0
by: Sabri.Pllana | last post by:
We apologize if you receive multiple copies of this call for papers. *********************************************************************** 2008 International Workshop on Multi-Core Computing...
1
by: foobar | last post by:
I am doing a php webshop. I have 4 tables: product for product info, product_catalog for multi-level catalogs, product_product_catalog for binding product and product_catalog together -- it shows...
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
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.