C-Frame using ASP 3.0

Discussion in 'C#' started by venksrir, Aug 3, 2008.

  1. #1
    Hello All,

    I am planning to develop a web site using ASP 3.0 (allowed technology in my host server). I am a Java developer so i do not have much idea about ASP, but would definitely learn fast to develop the site. I am doing design for my site and this is what i have planned to do.

    1) The Site will have a C-Frame (Header, LeftNavigation, Footer) and a content block in the Middle.
    2) Header will have 2 rows (one row has an image and another row will show the title and few more).

    My intention is to develop an ASP page for C-Frame and should be included in all the pages (content pages). Thereby i can make changes to the C-Frame in just one file, next i do not need to include the entire C-Frame logic in to all other pages. Maintenance would be very easy.

    Here is where i need your help. Could you please tell me how to write a C-Frame using Classic ASP and embed in all the pages?

    Your valuable input would be of great help for me. Thanks in advance.

    Sriram
     
    venksrir, Aug 3, 2008 IP
  2. manithemoneyman

    manithemoneyman Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You dont need to make a template page yourself, ASP.Net already provides this functionality since version 2.0

    They are called MasterPages.

    Basically you create a MasterPage and just place your layout and controls that you want across the site, on this page. Then you can put controls called ContentPlaceHolders where you want the content to change.

    Then create other regular pages for your site. Tell each page to use the masterpage you created, and in those regular pages, place your content. Wrap the content with the Content controls and you can determine where the content goes in the MasterPage.

    Its pretty simple once you get used to it, heres a nice tutorial that explains it all:

    quickstarts.asp.net/QuickStartv20/aspnet/doc/masterpages/default.aspx
     
    manithemoneyman, Aug 3, 2008 IP