I\'m trying to programmatically add a . It is working fine when there is a Head element with runat = \"server\" in the
Head
runat = \"server\"
The best solution for this, which I successfully checked without any error or warning:
The JavaScript code, which contains the <% ... %> code, was removed from the head section and placed in the body section.
<% ... %>
head
body