Comment in JavaScript code doesn't comment the server command

 Comment in JS code doesn't comment the server command. It is correct, but can be visually confusing. I had the following line in markup ASCX file. 

// var trs = document.getElementById('<%=pnlOutsideSearch.ClientID %>').getElementsByTagName('TR');

Visual Studio showed it as green comment.
However when server control pnlOutsideSearch was renamed, the errors were generated, and it took me some time to realize, what wrong with the line, tha it was look like just comment.
 
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati
posted @ Friday, November 27, 2009 7:07 PM
Print

Comments on this entry:

# re: Comment in JavaScript code doesn't comment the server command

Left by Coach bags for cheap at 5/27/2011 5:01 AM
Gravatar
so cool

Your comment:



(not displayed)


 
 
 
 
 

Live Comment Preview:

 
«February»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910