Let's say I am working in a .aspx page (or View, for the MVC folk) and I have a block of inline code:
<p>Some HTML and content</p>
<% foreach (var x in foo) { %>
<%= x.myProperty %>
<% } %>
<p>Moar HTMLz</p>
Is there a more efficient, less cumbersome way to extract text into the markup than this model? It seems like there are a lot of <%
's
EDIT I guess what I'm really asking is if there's any better way to get text on the page from a codeblock without leaving the code block, re-entering into a code block, and then reentering the enclosing codeblock.