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. How to assign master page through web.config

How to assign master page through web.config

Scheduled Pinned Locked Moved ASP.NET
tutorialquestionworkspace
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.
  • M Offline
    M Offline
    md_azy
    wrote on last edited by
    #1

    Hi , I have five pages in my project ,i want to assign master page for this five pages through web.config. In web. config file i mention that master page file name like this <configuration> <system.web> <pages master="~CommonMaster.master" > <system.web> <configuration> But while running the pages master page content is coming. I have to mention anything in masterpage or contentpage ????

    T K 2 Replies Last reply
    0
    • M md_azy

      Hi , I have five pages in my project ,i want to assign master page for this five pages through web.config. In web. config file i mention that master page file name like this <configuration> <system.web> <pages master="~CommonMaster.master" > <system.web> <configuration> But while running the pages master page content is coming. I have to mention anything in masterpage or contentpage ????

      T Offline
      T Offline
      Tarik Guney
      wrote on last edited by
      #2

      I am not a perfect programmer,but i have perfect's programmers' habits.

      1 Reply Last reply
      0
      • M md_azy

        Hi , I have five pages in my project ,i want to assign master page for this five pages through web.config. In web. config file i mention that master page file name like this <configuration> <system.web> <pages master="~CommonMaster.master" > <system.web> <configuration> But while running the pages master page content is coming. I have to mention anything in masterpage or contentpage ????

        K Offline
        K Offline
        Kannan Ar
        wrote on last edited by
        #3

        May be the problem is master page path. I don’t think ‘~CommonMaster.master’ is valid.

        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