Not. In some cases, this can be done differently, and changes elsewhere on the page may change this control. The proper way to handle this is to reference the control property .ClientID .
Update
This is how I usually handle client identifiers:
<head runat="server"> ... <script language="javascript"> var ControlIDs = { SomeControl = <%="'" + SomeControl.ClientID%>', OtherControl = <%="'" + OtherControl.ClientID%>' }; </script> ... other script references here ... </head>
I put the script first in the head element so that it is available to other script files; this way I don't need to transfer javascript files through the asp.net processor, and I only have to write out each client identifier once. There is no need to worry about avoiding anything because the characters "and" will never be part of client identifiers. The reason for the controlIDs object is to avoid naming collisions with other scripts, and the reason for concatenating "" on the front panel in the server code is because asp.net will not see <% otherwise.
Again: this is what I usually do, but for some simple pages this might be redundant.
source share