The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.


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.


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


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