Tuesday, 28 May 2013

tag cannot recognized

<asp> tag cannot recognized

I'am new to Asp.net MVC. I just downloaded a tutorial for learning. I copied their code into my "_Layout" file in order to make my view consistent. It cannot recognize the asp tag. I thought the error due to different view engine. I am using Razor engine. The code was
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
The error was
 unrecognized namcespace 'asp'
What does asp tag mean here? And how to swich it to Razor readable syntax.
Thanks

No comments:

Post a Comment