ASP.Net control contains code blocks (i.e. <% ... %>) Error

ASP.Net control contains code blocks (i.e. <% ... %>) Error

My page was having few javascript in head tag...
when creating a combobox with sqldatasource in modalpopup extender i got above error at runtime.

Fix: Move all javascript code from head tag to inside body tag just before < / body>

Comments