Results 1 to 5 of 5

Thread: Master Pages

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    28

    Arrow Master Pages

    I took ASP.Net 5 years ago and apparently forgot a lot. lol I created a new website with VB.Net as the language. I created a master page. My question is two parts. First, what is the "DIV" box at the top, do I need it? Second, I know I can create a table and put the content placeholder in one of the cells but can what I really want is just a row at the top for my logo, banner ad and logon controls, a row under that for navigational controls, a column on the left for page links and other content links and a cell to the right to put my content placeholder but can I resize the placeholder to take up the rest of the page or am I stuck with it resizing based on the content?

    This is a real newbie question. Plus can anyone recommend a good book other thanthe ASP.Net 2.0?

  2. #2
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Master Pages

    I suggest since contentplaceholder is just a container, to resize the elements inside.
    Now...No you don't need the div and i don't know what div box you are referring to,but if you don't use div then u must use tables to control your elements(of course you can have both).
    As for the design, you start css and if something is wrong let us know.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898

    Re: Master Pages

    In general, it is bad practice to use tables. Div's are much better, but you need to understand how to use them. People usually use tables when they dont understand Div's. A quick google on Div will give lots of examples if your stuck

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,763

    Re: Master Pages

    Generally nowadays tables are used in limited amounts and for correct horizontal and vertical sizing-matching,especially for compatibility with old browsers.It's very bad practice to use tables if you start doing the table inside table scenario.I suggest to primary use div's and only use tables if you have extreme sizing situations.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  5. #5
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: Master Pages

    Shodan, the div is placed by default on a page in visual studio. You dont need it so feel free to remove it. Tables generally should only be used to display tabular data, and the divs + CSS to control layout.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width