Search
AppTheory - app.the.o.ry, n. Developer's Metaphor

Blog

by Scott Schecter

When using ASP.NET AJAX from within a DotNetNuke module one needs an instance of a ScriptManager control to be registered. This is normally handles by the DotNetNuke framework on recent versions. Since a module developer has to deal with numerous application environments, its always good to check these things are warn users instead of getting a nasty exception message. Below is an easy way to check that the ScriptManager is registered before attempting to use ASP.NET AJAX.

protected override void OnInit(EventArgs e)
{
    base.OnInit(e);
    if (AJAX.IsInstalled())
    {
        AJAX.RegisterScriptManager();
    }
}
TAGS:
DotNetNuke Tips & Tricks

Subscribe to this Blog

Contact Us!

AppTheory wants to talk to you about your business requirements. Click Contact Us below to fill out an online requirements questionnaire.

Contact Us

If you would like to contact us directly you can do so by calling Monday through Friday 9am to 6pm EST.