Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Including asp.net pages i another asp.net page

Including asp.net pages i another asp.net page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    G Ringbom
    wrote on last edited by
    #1

    Is it possible to include asp.net code in a .aspx page? What I want to do is create a structure for my pages. So I can create stuff like a header, a menu, a footer, and a presentation part. So bascially, when I create a new .aspx page I copy code from a template to the new page. That template contains the various parts the page consists of. It also contains a part where the parts that are unique to this page can be inserted. Is this possible without using frames? Is there some kind of include that can import code to a .aspx file?

    C R 2 Replies Last reply
    0
    • G G Ringbom

      Is it possible to include asp.net code in a .aspx page? What I want to do is create a structure for my pages. So I can create stuff like a header, a menu, a footer, and a presentation part. So bascially, when I create a new .aspx page I copy code from a template to the new page. That template contains the various parts the page consists of. It also contains a part where the parts that are unique to this page can be inserted. Is this possible without using frames? Is there some kind of include that can import code to a .aspx file?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You want to create your header/footer/menu as controls and place them on your page. In asp.net 2.0, you could create a master page instead, but goodness knows when that will arrive. Christian I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer

      1 Reply Last reply
      0
      • G G Ringbom

        Is it possible to include asp.net code in a .aspx page? What I want to do is create a structure for my pages. So I can create stuff like a header, a menu, a footer, and a presentation part. So bascially, when I create a new .aspx page I copy code from a template to the new page. That template contains the various parts the page consists of. It also contains a part where the parts that are unique to this page can be inserted. Is this possible without using frames? Is there some kind of include that can import code to a .aspx file?

        R Offline
        R Offline
        R Senthil Kumaran
        wrote on last edited by
        #3

        u can use usercontrols .ascx and have a table in the aspx then drag and drop the user control. u can use this for all sort of controls that is menu, header, footer.......:rose:;) Loving Code, R. Senthil Kumaran

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups