I have a jquery script that I need to add to my pages through C# code. The way I am doing it now causes trouble with the .net ajax toolkit.
I have it like this
I am using ResolveClientUrl because I have some pathing issues if I don't.
But when I have anything from the toolkit I get this error
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
I found a person saying that to avoid this you have to put your script programatically in but I don't know how to do this.