Master Page Template

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

    #1

    Master Page Template

    Is there any way to apply a master page to existing pages that weren't
    previously using a master page? VB 2005.

    Thanks,
    Ryan


  • Cor Ligthert [MVP]

    #2
    Re: Master Page Template

    Ryan,

    That is in my opinion not with a correct answer to answer question.

    Of course it can, but than is it how are those existing pages build.

    There in my opinion nowhere so much methods that can make a page as with
    webpages. (I am not talking about the raw HTML results but the page the
    developer is making)

    If you have in past used frames or Iframes than it is in my idea very simple
    for those frames.

    Cor

    "Ryan" <Tyveil@newsgro ups.nospam> schreef in bericht
    news:e35Zp$HlGH A.3588@TK2MSFTN GP02.phx.gbl...[color=blue]
    > Is there any way to apply a master page to existing pages that weren't
    > previously using a master page? VB 2005.
    >
    > Thanks,
    > Ryan
    >[/color]


    Comment

    • Ryan

      #3
      Re: Master Page Template

      Sorry Cor I'm having trouble understanding you're answer.

      I have numerous pages that I want to have the same surrounding art (a header
      banner espescially). It was my understanding that using a MasterPage
      template is the way to do this in VB 2005. I already have my pages created
      for functionality, now I just want to add some artwork to the top of all of
      the pages. Are you saying I should redesign the pages to use frames?

      Thanks,
      Ryan

      "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
      news:%23zdxtHIl GHA.2304@TK2MSF TNGP02.phx.gbl. ..[color=blue]
      > Ryan,
      >
      > That is in my opinion not with a correct answer to answer question.
      >
      > Of course it can, but than is it how are those existing pages build.
      >
      > There in my opinion nowhere so much methods that can make a page as with
      > webpages. (I am not talking about the raw HTML results but the page the
      > developer is making)
      >
      > If you have in past used frames or Iframes than it is in my idea very
      > simple for those frames.
      >
      > Cor
      >
      > "Ryan" <Tyveil@newsgro ups.nospam> schreef in bericht
      > news:e35Zp$HlGH A.3588@TK2MSFTN GP02.phx.gbl...[color=green]
      >> Is there any way to apply a master page to existing pages that weren't
      >> previously using a master page? VB 2005.
      >>
      >> Thanks,
      >> Ryan
      >>[/color]
      >
      >[/color]


      Comment

      • Aspnot

        #4
        Re: Master Page Template

        You can force a master page to apply to an entire site using the web.config
        file.

        If you didn't create your pages to take advantage of a MasterPage, then you
        may have some cleaning up to do. Typically, you have an
        <asp:contentpla ceholder> tag in your MasterPage and then you have an
        <asp:content> tag in each page that is to use the MasterPage. You also need
        to inlcude the ContentPlaceHol derID attribute of the <asp:content> tag in the
        ASPX page to tell the page which contentplacehol der to use. (From what I can
        tell, this is the piece that allows you to nest MasterPages within each
        other.)

        If your content pages are not configured to use the <asp:content> tags, then
        I do not know how your pages are going to be rendered.

        That should get you started, though.


        "Ryan" wrote:
        [color=blue]
        > Sorry Cor I'm having trouble understanding you're answer.
        >
        > I have numerous pages that I want to have the same surrounding art (a header
        > banner espescially). It was my understanding that using a MasterPage
        > template is the way to do this in VB 2005. I already have my pages created
        > for functionality, now I just want to add some artwork to the top of all of
        > the pages. Are you saying I should redesign the pages to use frames?
        >
        > Thanks,
        > Ryan
        >
        > "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
        > news:%23zdxtHIl GHA.2304@TK2MSF TNGP02.phx.gbl. ..[color=green]
        > > Ryan,
        > >
        > > That is in my opinion not with a correct answer to answer question.
        > >
        > > Of course it can, but than is it how are those existing pages build.
        > >
        > > There in my opinion nowhere so much methods that can make a page as with
        > > webpages. (I am not talking about the raw HTML results but the page the
        > > developer is making)
        > >
        > > If you have in past used frames or Iframes than it is in my idea very
        > > simple for those frames.
        > >
        > > Cor
        > >
        > > "Ryan" <Tyveil@newsgro ups.nospam> schreef in bericht
        > > news:e35Zp$HlGH A.3588@TK2MSFTN GP02.phx.gbl...[color=darkred]
        > >> Is there any way to apply a master page to existing pages that weren't
        > >> previously using a master page? VB 2005.
        > >>
        > >> Thanks,
        > >> Ryan
        > >>[/color]
        > >
        > >[/color]
        >
        >
        >[/color]

        Comment

        • Cor Ligthert [MVP]

          #5
          Re: Master Page Template

          Ryan,

          There are endless tools that create webpages.

          To give some of those
          Visual Studio Net 2002/2003
          Interdev 98
          FrontPage version express until 2003
          Dreamweaver different versions
          Flash different versions
          Studio different versions
          Php
          Coffeecup
          Lotus
          Ace
          Java applets
          JavaScript
          CSS
          Notepad
          etc. etc.

          From the way you have used these tools it depends how easy it is to use that
          integrated into your masterpages from Visual Studio Net 2005.

          Cor


          "Ryan" <Tyveil@newsgro ups.nospam> schreef in bericht
          news:%23cIHqXIl GHA.1272@TK2MSF TNGP03.phx.gbl. ..[color=blue]
          > Sorry Cor I'm having trouble understanding you're answer.
          >
          > I have numerous pages that I want to have the same surrounding art (a
          > header banner espescially). It was my understanding that using a
          > MasterPage template is the way to do this in VB 2005. I already have my
          > pages created for functionality, now I just want to add some artwork to
          > the top of all of the pages. Are you saying I should redesign the pages
          > to use frames?
          >
          > Thanks,
          > Ryan
          >
          > "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
          > news:%23zdxtHIl GHA.2304@TK2MSF TNGP02.phx.gbl. ..[color=green]
          >> Ryan,
          >>
          >> That is in my opinion not with a correct answer to answer question.
          >>
          >> Of course it can, but than is it how are those existing pages build.
          >>
          >> There in my opinion nowhere so much methods that can make a page as with
          >> webpages. (I am not talking about the raw HTML results but the page the
          >> developer is making)
          >>
          >> If you have in past used frames or Iframes than it is in my idea very
          >> simple for those frames.
          >>
          >> Cor
          >>
          >> "Ryan" <Tyveil@newsgro ups.nospam> schreef in bericht
          >> news:e35Zp$HlGH A.3588@TK2MSFTN GP02.phx.gbl...[color=darkred]
          >>> Is there any way to apply a master page to existing pages that weren't
          >>> previously using a master page? VB 2005.
          >>>
          >>> Thanks,
          >>> Ryan
          >>>[/color]
          >>
          >>[/color]
          >
          >[/color]


          Comment

          • Walter Wang [MSFT]

            #6
            RE: Master Page Template

            Hi Ryan,

            Thank you for your post.

            Unfortunately existing pages that weren't previously using a Master Page
            must be tailored to be used with MasterPage.

            Pages will use the MasterPage is called a Content page. In a content page,
            anything that is not inside the Content (<asp:Content> ) controls (except
            script blocks for server code) results in an error. You can perform any
            tasks in a content page that you do in an ASP.NET page. For example, you
            can generate content for a Content control using server controls and
            database queries or other dynamic mechanisms.

            You can find more information about MasterPage here:

            #ASP.NET Master Pages Overview
            http://msdn2.microsoft.com/en-us/wtxbf3hh.aspx

            Please feel free to post here if you need more help on Master Pages.


            Regards,
            Walter Wang
            Microsoft Online Community Support

            =============== =============== =============== =====
            When responding to posts, please "Reply to Group" via your newsreader so
            that others may learn and benefit from your issue.
            =============== =============== =============== =====

            This posting is provided "AS IS" with no warranties, and confers no rights.

            Comment

            Working...