turn off auto-renaming of html elements' id in visual studio 2012 -
in situation when have conditional server code, visual studio keeps auto-renaming duplicate id's.
here's valid example:
<% if x = 1 %> <input type="hidden" id="hello" value=""/> <% else %> <input type="hidden" id="hello" value=""/> <% end if %>
when visual studio's live error checking finds this, change code without confirming me following:
<% if x = 1 %> <input type="hidden" id="hidden1" value=""/> <% else %> <input type="hidden" id="hidden2" value=""/> <% end if %>
how turn off? don't mind turning off whole live error checking even. don't know toggle "feature" though.
thank reading question,
go tools -> options
scroll down text editor. expand it, select html , expand it. click miscellaneous , should see following.
deselect first option , try it.
Comments
Post a Comment