Only Content controls are allowed directly in a content page that contains Content controls

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
2
down vote

favorite
1












I have SharePoint error in custom page layout



I checked this issue in SP logs and found this




Only Content controls are allowed directly in a content page that contains Content controls.

at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)

at System.Web.UI.TemplateParser.ProcessLiteral()











share|improve this question









New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Somewhere in your page, you are using an element which is not allowed. Best you post the relevant part of your page so we can see what may be wrong.
    – helb
    3 hours ago











  • If you share the markup for the page layout we will be able to help better.
    – James Randal
    3 hours ago










  • Yes its working fine now I changed the content place holder elements from <asp:content> to <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
    – Mohamed Magdy
    1 hour ago

















up vote
2
down vote

favorite
1












I have SharePoint error in custom page layout



I checked this issue in SP logs and found this




Only Content controls are allowed directly in a content page that contains Content controls.

at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)

at System.Web.UI.TemplateParser.ProcessLiteral()











share|improve this question









New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Somewhere in your page, you are using an element which is not allowed. Best you post the relevant part of your page so we can see what may be wrong.
    – helb
    3 hours ago











  • If you share the markup for the page layout we will be able to help better.
    – James Randal
    3 hours ago










  • Yes its working fine now I changed the content place holder elements from <asp:content> to <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
    – Mohamed Magdy
    1 hour ago













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I have SharePoint error in custom page layout



I checked this issue in SP logs and found this




Only Content controls are allowed directly in a content page that contains Content controls.

at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)

at System.Web.UI.TemplateParser.ProcessLiteral()











share|improve this question









New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have SharePoint error in custom page layout



I checked this issue in SP logs and found this




Only Content controls are allowed directly in a content page that contains Content controls.

at System.Web.UI.FileLevelPageControlBuilder.AppendLiteralString(String text)

at System.Web.UI.TemplateParser.ProcessLiteral()








2016 page-layout






share|improve this question









New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 4 hours ago









Robert Lindgren

22.5k94268




22.5k94268






New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









Mohamed Magdy

163




163




New contributor




Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Mohamed Magdy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Somewhere in your page, you are using an element which is not allowed. Best you post the relevant part of your page so we can see what may be wrong.
    – helb
    3 hours ago











  • If you share the markup for the page layout we will be able to help better.
    – James Randal
    3 hours ago










  • Yes its working fine now I changed the content place holder elements from <asp:content> to <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
    – Mohamed Magdy
    1 hour ago

















  • Somewhere in your page, you are using an element which is not allowed. Best you post the relevant part of your page so we can see what may be wrong.
    – helb
    3 hours ago











  • If you share the markup for the page layout we will be able to help better.
    – James Randal
    3 hours ago










  • Yes its working fine now I changed the content place holder elements from <asp:content> to <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
    – Mohamed Magdy
    1 hour ago
















Somewhere in your page, you are using an element which is not allowed. Best you post the relevant part of your page so we can see what may be wrong.
– helb
3 hours ago





Somewhere in your page, you are using an element which is not allowed. Best you post the relevant part of your page so we can see what may be wrong.
– helb
3 hours ago













If you share the markup for the page layout we will be able to help better.
– James Randal
3 hours ago




If you share the markup for the page layout we will be able to help better.
– James Randal
3 hours ago












Yes its working fine now I changed the content place holder elements from <asp:content> to <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
– Mohamed Magdy
1 hour ago





Yes its working fine now I changed the content place holder elements from <asp:content> to <asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
– Mohamed Magdy
1 hour ago











1 Answer
1






active

oldest

votes

















up vote
2
down vote



accepted










The error message is correct that only content tags can be added in those sections.



I have seen issues where the Content tag is all lower case like



<asp:content ....>


when infact it should be uppercase e.g



<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">





share|improve this answer




















  • Thanks, It's Working fine :)
    – Mohamed Magdy
    1 hour ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "232"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Mohamed Magdy is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f249080%2fonly-content-controls-are-allowed-directly-in-a-content-page-that-contains-conte%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
2
down vote



accepted










The error message is correct that only content tags can be added in those sections.



I have seen issues where the Content tag is all lower case like



<asp:content ....>


when infact it should be uppercase e.g



<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">





share|improve this answer




















  • Thanks, It's Working fine :)
    – Mohamed Magdy
    1 hour ago














up vote
2
down vote



accepted










The error message is correct that only content tags can be added in those sections.



I have seen issues where the Content tag is all lower case like



<asp:content ....>


when infact it should be uppercase e.g



<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">





share|improve this answer




















  • Thanks, It's Working fine :)
    – Mohamed Magdy
    1 hour ago












up vote
2
down vote



accepted







up vote
2
down vote



accepted






The error message is correct that only content tags can be added in those sections.



I have seen issues where the Content tag is all lower case like



<asp:content ....>


when infact it should be uppercase e.g



<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">





share|improve this answer












The error message is correct that only content tags can be added in those sections.



I have seen issues where the Content tag is all lower case like



<asp:content ....>


when infact it should be uppercase e.g



<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">






share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









James Randal

820216




820216











  • Thanks, It's Working fine :)
    – Mohamed Magdy
    1 hour ago
















  • Thanks, It's Working fine :)
    – Mohamed Magdy
    1 hour ago















Thanks, It's Working fine :)
– Mohamed Magdy
1 hour ago




Thanks, It's Working fine :)
– Mohamed Magdy
1 hour ago










Mohamed Magdy is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Mohamed Magdy is a new contributor. Be nice, and check out our Code of Conduct.












Mohamed Magdy is a new contributor. Be nice, and check out our Code of Conduct.











Mohamed Magdy is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsharepoint.stackexchange.com%2fquestions%2f249080%2fonly-content-controls-are-allowed-directly-in-a-content-page-that-contains-conte%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

Confectionery