How do you get exactly the same table in all your pages ?

C

Craig Kenisston

Hi,

I am starting to learn ASP.net, and I am studying the starter kits.
I've trying to determine which is the optimal way to have a classical page
with a top header, a left hand menu and a right side content page.

It seems that the most common approach in the starter kits is to put both
the header and the menu in user controls, and then you put these controls on
all and each of your forms.
I see the eCommerce sample, all the pages has a table with the exact same
arrange and properties. The controls corresponding to each inner page are
placed on it.

And here it comes my question and I'm sorry if this is too stupid or too
obvious, I am an experienced Delphi programmer but pretty new to working
with html/asp : are all these tables originated from a massive a copy-paste
operation !? I was thiking that may be, just guessing the table was placed
in some place like, in class sort-of and then you inherit from it in every
page ... but I can't find such things.

If that copy-paste in each new form while developing is the way to go, well,
I'll leart to live with it. But, let's suppose you change want to change the
layout by adding a cell or two, how do you maintain the evenness ? by going
on each form and change it one at time manually ?

If this is not the way to go, please let me know. Any advise is welcome.



Thanks in advance,
 
M

michael

(I think) You could use HTML FRAMES. Have a top frame, a left frame and a
main frame.

Other than that - I don't know how.
 
G

Guadala Harry

You can nest user controls within user controls. If you proceed to the
Community starter kit, you'll see that the documentation talks about one
user control providing the basic page layout for all pages, and that user
control hosts the other user controls, which can change on a per-page basis.
Apparently changing the "basic page layout user control" would effectively
change the layout of your entire site - at least all pages that use it for
their basic layout. The Community starter kit is pretty wild -check it out
if you haven't already; I'm sure it will give you some good ideas.

G
 

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

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top