views:

685

answers:

2

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?

+26  A: 

After a quick check(!)....

Tools > Options > Text Editor > HTML > Miscellaneous

Uncheck 'Auto ID elements on paste in Source view'.

CJM
You remember perfectly ! ;-)
Cerebrus
Sorry the IIRC was bravado... I lost my bottle then looked it up!
CJM
+1  A: 

Thank you! That has been driving me crazy!

Jasper