Reputation: 723
I am new to ASP.NET. When I was writing code in .aspx
page I am trying to use HTML tag in it then i got the following error:
Only Content controls are allowed directly in a content page that contains Content controls.
Can any one suggest the solution for it? And how can I use those tags?
Upvotes: 0
Views: 105
Reputation: 2284
if you are using master-page in that page, make sure all your html and server controls wrapped by Content Control.
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
html......
</asp:Content>
Upvotes: 3