How can I dynamically change the <script> src attribute from the Page_Load?
When I say dynamic, I really mean that it's the same page Default.aspx, but each refresh a different js source is referenced. The logic behind which js file to select is of no concern, merely the mechanism to set it.
I tried:
<script id="script1" runat="server" language="javascript" src="a.js" type="text/javascript"></script>
But script1 is not available on the .cs side. I know I can change it on the .aspx side by using the <% %> tags, but I don't want to have my logic embedded like that in my .aspx. There must be a way to do this on the .cs side in Page_Load?