Use MasterPage.master

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HsiuYing
    New Member
    • Oct 2007
    • 2

    Use MasterPage.master

    I am new to the ASP.net therefore any help that I can get will be appreciated. Can I create a aspx page under a folder by using MastePage.maste r as my template? I have created a edit.aspx page and use MasterPage.mast er as my template. My edit.aspx page looks good and my banner appear as well. I noticed if I created my edit.aspx page under a folder and also use MasterPage.mast er as my template. My banner image is not display for some reasons. Does that mean that I can't placed the aspx page under the folder when use MasterPage as my template?

    Thanks in advance!
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    moved to .NET forum

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      It would probably mean the path to your banner in the master page is not an absolute path, but instead is a relative one.

      So if your webpage directory was like:
      masterpage
      banner.jpg
      Edit/(this is a folder)
      Edit/somepage.aspx

      Your master page has a link to the banner as src="banner.jpg " which does not transfer over to the Edit/ folder (the page would then try and do a "edit/banner.jpg" implicitly)

      Comment

      • HsiuYing
        New Member
        • Oct 2007
        • 2

        #4
        Hi Plater,

        Thanks for the tip. I can see my banner on various aspx pages now :)

        Comment

        Working...