I want to access the 'script' tags in the HTML HEAD section of my page from the server but adding the instruction runat="server" to them seems to cause all sorts of strange behaviour. For example, simply adding runat="server" to a single script tag on the login page for one of my apps gives the error:
Removing that attribute solves the problem. So how do I access script tags from the server?
Code:
Compiler limit exceeded: Line cannot exceed 2046 characters
Removing that attribute solves the problem. So how do I access script tags from the server?