Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 18, 2012 12:07 PM by willnsub
Dec 16, 2012 05:54 PM|LINK
Can somebody tell me why when I upload all my pages in wwroot they show up in the browser
But when I upload them in a sub folder in my wwroot foder, they either return an error that the master page
does not exist or just and after some time of testing, the subfolder in order to work, i need to place a copy of my masterpages in the wwroot folder.
Dec 16, 2012 07:21 PM|LINK
perhaps your masterpage setting in your content page looks something like this:
this means that the content page is expecting to find the masterpage in the same folder that it's in.
if your masterpage is stored in the root of your app, then you could reference it like this:
The ~/ prefix means that the masterpage can be found in the root of the app.
Dec 16, 2012 09:31 PM|LINK
Dec 18, 2012 12:07 PM|LINK
<%@ Page Title="William Nsubuga's Blog Page" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" CodeFile="TrickyMindTest.aspx.cs" Inherits="TrickyMindTest" %>
It only works when I have the masterpage in the rootfolder of my site, but if I include the masterpage file in a subfolder that contains the other pages, it does not show in the explorer, or throws an exeption.