no. its a coding bug. controls are dynamically named, so you should
never view source to get the name, but use the ClientID on the server.
<script>
var myControl = document.getElementById('<%=myControl.ClientID%>');
</script>
-- bruce (sqlwork.com)
I am referring to the controls as I have entered them in my VB code,
which works fine when the project is run under ASP 1.1 in IIS, but
when run under ASP 2.0 in IIS, bugs occur in the JavaScript because
the controls have been relabeled (by ASP 2.0, not by me).
> no. its a coding bug. controls are dynamically named, so you should
> never view source to get the name, but use the ClientID on the server.
[quoted text clipped - 17 lines]
>
> - Show quoted text -
Teemu Keiski - 30 Jun 2007 12:22 GMT
As Bruce said, you shouldn't refer them, since ASP.NEt does renaming of
control ids based on how they are contained in naming containers etc. The
reliable way is to use ClientID, it is meant for client-script scenarios.

Signature
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
>I am referring to the controls as I have entered them in my VB code,
> which works fine when the project is run under ASP 1.1 in IIS, but
[quoted text clipped - 22 lines]
>>
>> - Show quoted text -