This has been bugging me off-and-on for the past year or so. Considering the following code…
<% if (!IsCrawler)
{%>
Some conditional markup goes here
<%
} %>
It seems that after switching to ‘Design’ view then back to ‘Source’ view the file save process does some odd things to inline code. For example, after saving, the code shown above appears as illustrated below…
Some conditional markup goes here
Notice the inline code has vanished?
I’m running the following: Microsoft Visual Studio Professional 2012 Version 11.0.60610.01 Update 3
Go to the complete details ...