Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 18, 2012 12:07 PM by willnsub
Member
134 Points
62 Posts
Dec 16, 2012 05:54 PM|LINK
Hi
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.
Any solutions?
All-Star
134961 Points
15421 Posts
ASPInsiders
Moderator
MVP
Dec 16, 2012 07:21 PM|LINK
perhaps your masterpage setting in your content page looks something like this:
MasterPageFile="MasterPage.master"
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:
MasterPageFile="~/MasterPage.master"
The ~/ prefix means that the masterpage can be found in the root of the app.
31247 Points
6384 Posts
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.
willnsub
Member
134 Points
62 Posts
Pages Do Not Show
Dec 16, 2012 05:54 PM|LINK
Hi
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.
Any solutions?
FACEBOOK: FACEBOOK.COM/MYGIGABOX
mbanavige
All-Star
134961 Points
15421 Posts
ASPInsiders
Moderator
MVP
Re: Pages Do Not Show
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.
oned_gk
All-Star
31247 Points
6384 Posts
Re: Pages Do Not Show
Dec 16, 2012 09:31 PM|LINK
willnsub
Member
134 Points
62 Posts
Re: Pages Do Not Show
Dec 18, 2012 12:07 PM|LINK
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.
FACEBOOK: FACEBOOK.COM/MYGIGABOX