New to Master Pages using VS 2008 Web Developer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ty

    New to Master Pages using VS 2008 Web Developer

    Hello,
    I have made a Master Page that basically consists of a table with 2
    rows and 3 columns. The first row spans all 3 cols to form a header.
    The first column in the 2nd row is being used as a vertical menu. The
    2nd & 3rd columns of the second row are joined to make one large cell.

    So for visualization picture a page with a header and a vertical menu
    on the left side with a large open space to the right of the menu.

    I placed the content holder into the large cell. I created a new form
    referenced to the master page. All is good so far.

    The content holder on the new form looks like long textbox. I had
    originally thought that I would just drag the controls on to the
    content holder and position them as I liked however the problem is
    that the content holder does not act like a form as I thought where
    you could drag controls on and position them as you want so now I'm
    stuck.

    Can you place a new form into the area just like a web form so that
    you can drag and position controls as you like? How would you do that
    as form is not an option in the toolbox?

    Is there another way to accomplish this. I tried adding a table with 1
    row and expanded it to create the large work space but you cannot drag
    control onto the table. they always place themselves before the table
    in the content holder area. This is very frustrating. It seems counter
    productive to not allow random placement of controls inside the
    content area.

    Hoping for help

    Ty
  • Mark Rae [MVP]

    #2
    Re: New to Master Pages using VS 2008 Web Developer

    "Ty" <tbarton@lewist ownhospital.org wrote in message
    news:d02112ff-572e-48f2-8f04-3b98fb1ec882@n5 8g2000hsf.googl egroups.com...
    I have made a Master Page that basically consists of a table with 2
    rows and 3 columns. The first row spans all 3 cols to form a header.
    The first column in the 2nd row is being used as a vertical menu. The
    2nd & 3rd columns of the second row are joined to make one large cell.
    Sounds like you don't actually need the third column...
    I placed the content holder into the large cell. I created a new form
    referenced to the master page. All is good so far.
    Alas not... ASP.NET pages can have only one server-side form and, in the
    case of a MasterPage / content page scenario, it goes in the MasterPage, not
    the content page...
    Can you place a new form into the area just like a web form so that
    you can drag and position controls as you like? How would you do that
    as form is not an option in the toolbox?
    No -see above...


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • David Wier

      #3
      Re: New to Master Pages using VS 2008 Web Developer

      The main reason for only one form is the difference in the paradigm, going
      to DotNet - since it's an Object Oriented/Event Driven platform, there is no
      need to have more than one....
      Each button you put on the form (all within the same ONE form tag) has its
      own event - therefore, you can do all the things you think you need multiple
      forms for, with multiple buttons inside one form

      This enormously opens your options, over the old "one form one page"
      paradigm

      I hope this helps

      David Wier

      http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
      bloated markup


      "Ty" <tbarton@lewist ownhospital.org wrote in message
      news:d02112ff-572e-48f2-8f04-3b98fb1ec882@n5 8g2000hsf.googl egroups.com...
      Hello,
      I have made a Master Page that basically consists of a table with 2
      rows and 3 columns. The first row spans all 3 cols to form a header.
      The first column in the 2nd row is being used as a vertical menu. The
      2nd & 3rd columns of the second row are joined to make one large cell.
      >
      So for visualization picture a page with a header and a vertical menu
      on the left side with a large open space to the right of the menu.
      >
      I placed the content holder into the large cell. I created a new form
      referenced to the master page. All is good so far.
      >
      The content holder on the new form looks like long textbox. I had
      originally thought that I would just drag the controls on to the
      content holder and position them as I liked however the problem is
      that the content holder does not act like a form as I thought where
      you could drag controls on and position them as you want so now I'm
      stuck.
      >
      Can you place a new form into the area just like a web form so that
      you can drag and position controls as you like? How would you do that
      as form is not an option in the toolbox?
      >
      Is there another way to accomplish this. I tried adding a table with 1
      row and expanded it to create the large work space but you cannot drag
      control onto the table. they always place themselves before the table
      in the content holder area. This is very frustrating. It seems counter
      productive to not allow random placement of controls inside the
      content area.
      >
      Hoping for help
      >
      Ty

      Comment

      • Ty

        #4
        Re: New to Master Pages using VS 2008 Web Developer

        It does make sense but I guess I'm stuff with what is the
        alternative.... .using tables within the content area to hold the
        controls and adding the controls through code to position where you
        want them since you cannot drag controls onto a table?

        It almost makes me wonder why bother I mean the nice thing about web
        forms is the ability to drag and drop controls If I lose that then I'd
        be better off just creating a user control or copying the base code
        for the menus onto each form.

        Ty

        Comment

        • Mark Rae [MVP]

          #5
          Re: New to Master Pages using VS 2008 Web Developer

          "Ty" <tbarton@lewist ownhospital.org wrote in message
          news:d2ff3d03-921a-4c3d-a66a-39345aabc717@n5 8g2000hsf.googl egroups.com...
          It almost makes me wonder why bother I mean the nice thing about web
          forms is the ability to drag and drop controls If I lose that then I'd
          be better off just creating a user control or copying the base code
          for the menus onto each form.
          The whole point of using MasterPages is precisely so you *don't* have to
          copy the base code for the menus onto each form - because there's only *one*
          form, and it lives on the MasterPage...


          --
          Mark Rae
          ASP.NET MVP


          Comment

          Working...