0
我是ASP.NET新手。當我在.aspx
頁我想使用HTML標籤在其編寫代碼,然後我得到了以下錯誤:ASP頁面中的HTML控件
Only Content controls are allowed directly in a content page that contains Content controls.
任何一個能表明它解決?我怎樣才能使用這些標籤?
我是ASP.NET新手。當我在.aspx
頁我想使用HTML標籤在其編寫代碼,然後我得到了以下錯誤:ASP頁面中的HTML控件
Only Content controls are allowed directly in a content page that contains Content controls.
任何一個能表明它解決?我怎樣才能使用這些標籤?
如果您在該頁面中使用母版頁,請確保您的所有HTML和服務器控件都包含在Content Control中。
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
html......
</asp:Content>
你想要添加什麼控件?你如何添加它(在標記或代碼背後)?請更新問題以顯示不工作的代碼。 – WestDiscGolf