I want to make texts from a database available in Javascript. I have made Texts.aspx which outputs Javascript code, and I want to include it. The includes have to be done in the right order, because Texts.aspx uses functions from other Javascript files. I tried adding a ScriptReference to this aspx file, but this breaks things. The following code gives a 404 error on ScriptResource.axd.
<asp:ScriptManager runat="server" EnableScriptGlobalization="true">
<CompositeScript>
<Scripts>
<asp:ScriptReference Path="~/Scripts/textFunctions.js" />
<asp:ScriptReference Path="~/Scripts/Texts.aspx" />
<asp:ScriptReference Path="~/Scripts/useTexts.js" />
</Scripts>
</CompositeScript>
</asp:ScriptManager>
How do include a dynamically generated Javascript file?
<script>tags to the master page. I could not get the ScriptReference to an URL working.