.Net Changes item identifiers

.Net kindly changes the identifiers of elements on my pages, adding ct100_ to them. As much as I appreciate that Microsoft is trying to help me avoid duplicate identifiers on my site, I think I can handle it myself. Can someone tell me how to prevent this? Thanks in advance.

+3
source share
5 answers

You need to:
override the behavior of ordinary controls to separate the Control.UniqueID property from the Control.ID property;
override the container naming controls so that we can control how identifiers are generated and how to find the control

:
http://nunogomes.net/post/2008/06/02/ASPNET-Controls-Improving-automatic-ID-generation-Architectural-Changes-(-Part-3).aspx


http://weblogs.asp.net/nunogomes/archive/2008/06/04/asp-net-controls-improving-automatic-id-generation-architectural-changes-part-3.aspx


http://forums.asp.net/t/1394822.aspx


+1

aspnet. clientid .

js, clientid, .


: , ASP.NET. HTML, . , runat=server. , webforms viewstate .., .

, - , , ... ( , !).

+4

ASP.NET - . , ASP.NET MVC - ?

+2

, INamingContainer , , . ClientID , , .

+2

.

ASP.NET, .NET Server .

, myControl.ClientID.

+1

Source: https://habr.com/ru/post/1705612/


All Articles