views:

139

answers:

1

How do I detect if a scriptmanager is loaded on a page? Some aspx pages have it and others don't and I need a user control to understand this so that it can either load it if needed and also for dealing with viewstate.

+3  A: 

Call ScriptManager.GetCurrent(page), which will return null if there's no ScriptManger on the page.

bdukes