KeyLimeTie Blog

Access ScriptManager in a Master Page from Content Page

By Brian Pautsch – 6/12/2008. Posted to Code Snippets.

I recently had to access the ScriptManager in a Master Page from one of the Content Pages.
I first tried to perform a FindControl(), but there's a much easier way.
There is a static method in the ScriptManager class called "GetCurrent()" which provides access to the current instance of the ScriptManager.


//Extend script manager timeout to 10 minutes

ScriptManager.GetCurrent(this).AsyncPostBackTimeout = 600;

Photos on Flickr

More Photos »

Search Blog


Get Email Updates

Like what you read here at KeyLimeTie? Sign up for our email list!

Subscribe