$(\'#<%=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
Like the others have explained <%=nameLabel.ClientID%> needs to run on the server. You could however do something like this:
<%=nameLabel.ClientID%>
$("[id$=_nameLabel]")
Checks all ids and matches those that end with _nameLabel.