In ASP.NET, when you give an ID tag, it generates a unique HTML identifier for the element based on the control hierarchy, i.e.
<asp:Panel ID="test" runat="server">
...
</asp:Panel>
<div id="plc_lt_zoneContent_PagePlaceholder_PagePlaceholder_lt_test_test">
...
</div>
Is there a way to determine the generated identifier in the codebehind file? I need to generate Javascript that uses an identifier.
source
share