How do I prevent Visual Studio from renaming my controls?

Posted by Zack Peterson on Stack Overflow See other posts from Stack Overflow or by Zack Peterson
Published on 2009-01-27T17:20:50Z Indexed on 2010/04/13 17:33 UTC
Read the original article Hit count: 476

Filed under:
|

If I paste something like

<asp:DropDownList ID="DropDownListExpirationDate" runat="server" />

onto an ASPX file that already has a DropDownListExpirationDate control, it will rename the newly-pasted control as DropDownList1.

<asp:DropDownList ID="DropDownList1" runat="server" />

I'd rather it didn't. I'd rather is just paste exactly what I copied.

Is there a way to disable this feature?

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about .NET