Pros Advice

G

Guest

Hi,

I am building a web app to take customer info. shipping info and then an
order and send data to database. I was planning on using one page to take
both the customer info and shipping info by using panels and then another
page for the order. Is that the right way? Or do I create separate pages and
then pass the data from one page to another via querystrings?

What would be the recommended approach in this situation and also what are
the best ways to flow the info from one page to another and then making a
final insert to the database after the order is being placed.



Thanks
 
K

Kevin Spencer

A good rule of thumb is, never load code until you need it. The reason for
this is that the mere loading of the code occupies a certain small amount of
memory, even though it is not processed. And there is processing involved as
well, such as the conditional processing to determine which code gets
executed. So, the best practice is to make these separate pages. If they
share some functionality, put it into Controls and/or classes that can be
used by both Pages.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top