I use asp.net script manager in master page to add js files . In one of child pages i dont want specific js file to be excluded . is it possible in asp.net?
eg code in my master page
<asp:ScriptManager runat="server" EnablePageMethods="true" EnablePartialRendering="true" ID="id" OnResolveScriptReference="sm_ResolveScriptReference">
<Scripts>
<asp:ScriptReference Path="~/scripts/jquery-1.4.2.min.js" />
<asp:ScriptReference Path="~/scripts/jquery.bgiframe.min.js" />
<asp:ScriptReference Path="~/scripts/tax.js" />
<asp:ScriptReference Path="~/scripts/old.js" />
<asp:ScriptReference Path="~/scripts/menu.js" />
</Scripts>
</asp:ScriptManager>
i like to exclude old.js from one child page.Hope this helps
Warp your
ScriptManagerinside aPlaceHolderand when you do need to change it simple include thisPlaceHolderon the child. Eg:and on child if you include this line it will remove the ScriptManager. Of course you can include it again with different script to load.
Second solution is to make nested master page in the same way, include the ScriptManager inside a PlaceHolder, make a MasterPage with the first as parent, and change the script that it will include. Then select what page get the master page, and what gets the nested master page with different scripts.