In my ASP.Net Master Page, I encountered an issue:
<script language="javascript" type="text/javascript">
<asp:ContentPlaceHolder ID="scriptContentHolder" runat="server"></asp:ContentPlaceHolder>
</script>
When attempting to view the content page in design mode, an error message appeared stating that the associated Master page had an error because "scriptContentHolder" was not found.
<asp:Content ID="scriptContent" ContentPlaceHolderID="scriptContentHolder" runat="server">
g_page = "mnuSurveys";
</asp:Content>
To resolve this issue, I modified the Master page to:
<asp:ContentPlaceHolder ID="scriptContentHolder" runat="server"></asp:ContentPlaceHolder>
and updated the content page to:
<asp:Content ID="scriptContent" ContentPlaceHolderID="scriptContentHolder" runat="server">
<script language="javascript" type="text/javascript">
g_page = "mnuSurveys";
</script>
</asp:Content>
After making these changes, everything worked smoothly. Although the page compiled and executed without any issues, the designer raised a concern when using ContentPlaceHolder controls within <script> tags.