$(\'#<%=nameLabel.ClientID%>\') is being used in my script for jquery.
$(\'#<%=nameLabel.ClientID%>\')
When this is in ... block in tha page , it works fine ,as its a content page i
External javascript files are not served by the ASP.NET engine, so any server side tags such as <%= ... %> will not work. You could apply a css class to the element and use a CSS selector:
<%= ... %>
$('.nameLabel')