Possible duplicate:
ASP.NET custom tags
Hope these are not too many questions for beginners. It seems that I always use the correct syntax, but I really donβt understand why I use <%: and <% = in ASP.NET, and I was hoping someone could clarify for me. I found this article that explains <% = and <% # , but could not find anything on Google at <% :.
Examples of where I used a different syntax:
<div>
<%: Html.LabelFor(model => model.Type) %>
<%: Html.TextBoxFor(model => model.Type)%>
</div>
and
<div id="header-menu">
<ul>
<li><%= Html.ActionLink("Home", "", "Home" )%></li>
</ul>
</div>
Thanks for any clarification.
Possible answer (for ChrisF): ASP.NET special tags
source
share