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
More Related Contents:
- Call ASP.NET function from JavaScript?
- Change the selected value of a drop-down list with jQuery
- How can I read the client’s machine/computer name from the browser?
- React onClick function fires on render
- Best way to get all selected checkboxes VALUES in jQuery [duplicate]
- Accessing Asp.net controls using jquery (all options)
- Verify External Script Is Loaded
- javascript get x and y coordinates on mouse click
- How can I run a program or batch file on the client side?
- how to make sure only my own website (clientside code) can talk to Firebase backend?
- Embed an External Page Without an Iframe?
- Reference ASP.NET control by ID in JavaScript?
- Detect if button click real user or triggered by a script
- Call two functions from same onclick [duplicate]
- JavaScript: Invoking click-event of an anchor tag from javascript
- Calling ASP.NET Code Behind function from JavaScript
- Change Button color onClick
- Accessing elements of JSON object without knowing the key names
- Emailing to multiple recipients with html Mailto: not working
- jQuery function not binding to newly added dom elements
- onClick Function “this” Returns Window Object
- ASP.NET Parse DateTime result from ajax call to javascript date
- IMG SRC tags and JavaScript
- How to track a Google Adwords conversion onclick?
- Reconciling ASP.NET script bundles and source maps
- ASP.Net double-click problem
- JavaScript button onclick not working
- Exploiting JavaScript’s eval() method
- Change text color with Javascript?
- How can I force input to uppercase in an ASP.NET textbox?