Accessing control client name and not ID in ASP.NET Accessing control client name and not ID in ASP.NET asp.net asp.net

Accessing control client name and not ID in ASP.NET


You can get it using the Control.UniqueID Property

btnliOK.UniqueID

UniqueID gives the on page rendered name
ClientID gives the on page rendered id
ID give's the id that you can use on code behind