Today when I was working on some javascript in an Asp.NET page, I did something like this:
<script type="type/javascript">
var elementID = document.getElementById("<%=txtMyServerControl.ClientID %>")
</script>
And compiler threw an error and once I added a space between = and txtMyServerControl and it stopped complaining about it and worked. BUT however without space it is working perfectly on my co-worker’s computer?
Am I missing something?
Note: This is the error, there wasn’t any other problem and yes, I compiled several times before realizing this was the error.
1 Answer