Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > newbie: tables/layout

Reply
Thread Tools

newbie: tables/layout

 
 
suzy
Guest
Posts: n/a
 
      07-27-2003
hello,

i want to create a site where every page has a title bar at the top of the
page and a menu bar down the left of the page.

when i did this in normal asp i would create a template table layout on
every page where one cell would contain an include file which loaded the
title.
another cell would contain the menu include file for the left column of the
page.
then the remainder of the page would be a cell which would render the main
body of the page (whatever it was).

how would i do this in asp.net?
at the moment, i am doing it in the following way and would like to confirm
its the best way of doing it.

i have usercontrols instead of include files (1 for the header and 1 for the
menu).
then on every page i drag a placeholder control onto the aspx page so i can
add controls to the page at runtime.
then on every page i have to define a htmltable control which contains rows
and cells which hold the title bar (as a usercontrol), and the menu down the
left hand side (as a usercontrol). [** see below]
then the main cell contains the main content of the page.

is the a good way of doing things?
** also, is there any way i can make the table template code that i place on
every page resusable?


thanks.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57