Make ID Unique (ASP.NET)

Makes an element's identifier unique. The new identifier consists of the tag name and a number. For example, if you execute the refactoring for the <img> tag, the new identifier will become "img1". If the "img1" identifier already exists, the new identifier will become "img2", etc.

Availability

Available from the context menu or via shortcuts:

  • when the cursor is on a tag, provided that it's identifier is not unique within the current aspx page.

Examples

<img id="image" src="D:\MyImage.jpg" />
<img id="image" src="D:\TestImage.jpg" />

Result:

<img id="img1" src="D:\MyImage.jpg" />
<img id="image" src="D:\TestImage.jpg" />

Screenshot

rsMakeIDUnique