content is not supported outside 'script" or asp content' region

https://stackoverflow.com/questions/48915080/asp-net-content-is-not-supported-outside-the-script-or-aspcontentjavascript

https://forums.asp.net/t/1205746.aspx?content+is+not+supported+outside+script+or+asp+content+regionjava

asp.net web application有master pageweb

新增的page若是须要增长内容,须要使用asp:contentapp

<asp:content id="Content1" contentplaceholderid="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
        alert("Hello, World!");
    </script>
</asp:content>

 

the required attribute contentplaceholderid is not found on content control

https://stackoverflow.com/questions/27688659/verify-content-controls-contentplaceholderid-attribute-in-the-content-pageasp.net

在master page上有对应的,两边的id须要匹配上ide

<asp:ContentPlaceHolder ID="cphMain" runat="server">
</asp:ContentPlaceHolder>ui

 

输入ContentPlaceHolderID以后,会自动提示master page上有哪几个place holder能够用spa

相关文章
相关标签/搜索