ID vs UniqueID vs ClientID vs UniqueClientID vs StaticClientID?

前端 未结 3 1574
逝去的感伤
逝去的感伤 2021-01-02 09:57

Okay, I\'m pretty confused about the IDs of dynamically created controls.

Public Class TestClass
    Inherits Panel
    Implements INamingContainer

    Func         


        
3条回答
  •  甜味超标
    2021-01-02 10:14

    Use the ClientID property.

    ClientIDMode is there to support the ability to 100% set the actual ID used by the control..or not. Your choice. Basically it aids in writing javascript code.

提交回复
热议问题