Adding a ScriptManager to all .aspx pages without changing the pages?
In DotNetNuke we have a specific situation, we develop modules for a bigger system which we cannot change that much… Unfortunatly that system cannot be changed that easily to add Ajax required functionalities, the easiest thing (without changing the core of the project) is to do changes to web.config.
In that purpose… if you want to use Microsoft Ajax in your modules (or in any other similar enviroment) you would need to be able to change web.config only. So how to succedeed in doing that?
Obviously the biggest problem is the ScriptManager, because it needs to be present in every .aspx page (DotNetNuke has only one… Default.aspx) for Ajax to work.
One workaround I found is to write a HttpModule which does the ScriptManager insertion in the request pipeline so that Ajax can work.
You can download this HttpModule here:
VladanStrigoNET.HttpModules.EnsureScriptManager.zip
You need to place the dll in the bin directory and add this to your HttpModules list in the web.config file:
and it should work (it does for me :))!
If you still don’t understand “the big picture” of implementing Microsoft Ajax in your modules, don’t worry I am planning to write a guidance article which will explain the complete thing



