ASP.NET MVC/VS: How to stop VS inserting automatic IDs in pasted view content?

Posted by UpTheCreek on Stack Overflow See other posts from Stack Overflow or by UpTheCreek
Published on 2010-06-12T08:01:02Z Indexed on 2010/06/12 8:02 UTC
Read the original article Hit count: 165

Filed under:
|

Is there any way to stop VS (specifically 2008) automatically inserting WebForms Ids in <asp: elements when pasting code into a view?

E.g. by default pasting this into a view:

<asp:Content ContentPlaceHolderID="TitleContent" runat="server"/>
</asp:Content>

Results, annoyingly, in this:

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"/>
</asp:Content>

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about visual-studio