I have a script manager in my code:
<asp:ScriptManager ID="masterScriptManager" runat="server" EnablePageMethods="True"
EnablePartialRendering="true" ScriptMode="Auto" AsyncPostBackTimeout="360">
<Scripts>
<asp:ScriptReference Path="~/scripts/web_resource.ashx?type=1&v=<%=version %>" />
</Scripts>
</asp:ScriptManager>
And I would like to add version info at the end of Path in script reference. I tried also with <%# but I only see encoded characters but not version number. What should I change?
One solution could be just adding this script reference in control’s or page’s code-behind during some of control/page life-cycle events (i.e.
Load).