$(\'#<%=nameLabel.ClientID%>\')
is being used in my script for jquery.
When this is in ... block in tha page , it works fine ,as its a content page i
Simple answer : You can't use inline asp.net scripting in external .js files.
But there are two articles and source code which make this possible :
Simply click here and click here.
And also Asp.NET 4.0 brings a nice solution to this problem which is called ClientIDMode
Markup:
Output:
Markup:
Output:
Markup:
Output:
For more information, drop by here