Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Pages or Single Page???

Status
Not open for further replies.

Mighty

Programmer
Feb 22, 2001
1,682
US
Guys,

I have a program that has four procedures to represent four stages of order entry for our customers. Depending on the value of a hidden field in each form, the page determines what procedure to run. Each form submits to the same page.

Is there any disadvantage of having each form submitting to the same page in this way. Is it more/less efficient to have each form submit to a new program.

i.e. instead of having one program (sales.asp) with four procedures, would it be better to have four programs (sales1.asp, sales2.asp......) Mise Le Meas,

Mighty :)
 
That really depends on how long the procedures are... I use this method many times and find that as long as the procedures aren't composed of hundreds and hundreds of lines of code (because all four will be compiled each time the page loads) then performance will be fine. How long is too long? I dunno -- ;-)
penny.gif
penny.gif
 
At the moment, I have all the code in one program and it runs to about 1300 lines of code. Is this too long in your opinion?? Mise Le Meas,

Mighty :)
 
Nah -- I wouldn't worry about that -- especially if you have already set it up to work that way --

Is it fast enough for you (or your boss)? That's the real question. I am sort of partial to one page solutions. Keeps your directories cleaner.
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top