By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,694 Members | 1,846 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,694 IT Pros & Developers. It's quick & easy.

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

P: n/a
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,

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
(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.
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:ue**************@TK2MSFTNGP11.phx.gbl...
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,


Nov 18 '05 #2

P: n/a
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
"Craig Kenisston" <cr************@hotmail.com> wrote in message
news:ue**************@TK2MSFTNGP11.phx.gbl...
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,


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.