Good morning.
The content place and the master page will be used. Even already be in a dynamic way, changing with several links.
The problem is that I do not know how to get several different Content Pages loaded at the same MasterPage
at the same time. I have a MasterPage
divided by 3 ContentPlaceHolders
:
cphPrincipal
(home page)
cphMetodologia
(information on the company's method)
cphPortafolio
(company's products)
And I want to load the following pages in these PlaceHolders simultaneously:
cphPrincipal - > Principal.aspx
cphMethodology - > Metodologia.aspx
cphPortafolio - > Portafolio.aspx
The detail is that when I call one of the pages (for example principal.aspx so that it is loaded in the cphcontent) the other ContentPlaceHolders go blank and do not load anything.
Is there any way to tell the ContentPlaceHolder of the MasterPage to load the default page?
I already tried with this code: MasterPage
<!-- contenido -->
<asp:ContentPlaceHolder ID="cphPrincipal" runat="server </asp:ContentPlaceHolder>
<asp:ContentPlaceHolder ID="cphMetodologia " runat="server </asp:ContentPlaceHolder>
<asp:ContentPlaceHolder ID="cphPortafolio " runat="server </asp:ContentPlaceHolder>
<!-- //contenido -->
Two aspx example:
principal.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/MasterPage/mpWeb.Master" AutoEventWireup="true"
CodeBehind="Principal.aspx.cs" Inherits="GUI.Principal" %>
asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2"
ContentPlaceHolderID="cphPrincipal" runat="server"> </asp:Content>
metodologia.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/MasterPage/mpWeb.Master" AutoEventWireup="true"
CodeBehind="Metodologia.aspx.cs" Inherits="GUI.Metodologia" %>
< asp:Content ID="Content3" ContentPlaceHolderID="cphMetodologia"
runat="server">
portafolio.aspx
<%@ Page Title="" Language="C#"
MasterPageFile="~/MasterPage/mpWeb.Master"
AutoEventWireup="true" CodeBehind="Portafolio.aspx.cs"
Inherits="GUI.Portafolio" %>
< asp:Content ID="Content4" ContentPlaceHolderID="cphPortafolio" runat="server">
But only charge the first, and the others do not charge.
Thank you very much in advance.