One the the important ScriptManager properties that I test all the time is IsInPartialRenderingMode.
However, because I put my ScriptManager on the Master page, testing the IsInPartialRenderingMode property from apsx page is a pain in the neck, because it forces me to use a "Master.FindControl(...)" every time I want to test it. And because I always compile with Strict mode, I have to add the CType() as well, making the code pretty awful.
That's where my tip comes in.
On the code-behind page of the Master page, I create a read-only property called "IsInPartialRenderingMode", like this:
Public ReadOnly Property IsInPartialRenderingMode() As Boolean
Get
Return AtlasScriptManager.IsInPartialRenderingMode
End Get
End Property
Then, every time I want to test if the page is in partial render mode I use:
Master.IsInPartialRenderingMode
Which is much better than:
CType(Master.FindControl("AtlasScriptManager"), Microsoft.Web.UI.ScriptManager).IsInPartialRenderingMode
And probably much faster too!
As Scott Guthrie likes to say, "hope this helps."