HttpModule ensure pages have AJAX ScriptManager

Discussion in 'ASP.NET 2.0' started by wisemx, Jan 20, 2007.

  1. This is a pretty slick method to resolve sys errors in Ajax controls system wide:
    http://www.codeguru.com/csharp/.net/net_asp/tutorials/article.php/c12927/

    You don't have to read the entire article really but at least check out this section:
    Using an HttpModule to ensure all pages have an AJAX ScriptManager

    i.e.



    To deploy the new ScriptManagerAddModule, the application's web.config must be modified to add the new module to the ScriptModules section:


    <httpModules>
    <add name="ScriptManagerAddModule" type="ListSearch.ScriptManagerAddModule"/>
    </httpModules>



    Simple [​IMG]
     

Share This Page