Reputation: 57373
If I paste something like
<asp:DropDownList ID="DropDownListExpirationDate" runat="server" />
onto an ASPX file that already has a control with ID DropDownListExpirationDate
, it will rename the newly-pasted control as DropDownList1
.
<asp:DropDownList ID="DropDownList1" runat="server" />
I'd rather it didn't. I'd rather it just paste exactly what I copied.
Is there a way to disable this feature?
Upvotes: 27
Views: 4883
Reputation: 12016
After a quick check(!)....
Tools > Options > Text Editor > HTML > Miscellaneous
Uncheck 'Auto ID elements on paste in Source view'.
Upvotes: 57