Master page does not load in ASP.NET

0

My master page does not load in ASP.NET. I know why it does not carry, I do not know how to solve it. The master page is in a folder behind the page "isaque.aspx". Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="isaque.aspx.cs" Inherits="isaque"MasterPageFile="../CommunityMasterPage.master"%>

Here's a print:

    
asked by anonymous 23.08.2017 / 13:39

1 answer

0

To fix this problem, simply add the path to the master page like this:

MasterPageFile="~/Community/CommunityMasterPage.master

Just to clarify, after ~ you have to put the complete path from the system main folder to the master page.

If you do not have a master page, you will have to add%

I hope to have helped, hug!

    
23.08.2017 / 14:31