Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I detect if a scriptmanager is on the page?

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.

like image 601
Middletone Avatar asked Mar 01 '23 11:03

Middletone


1 Answers

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

like image 60
bdukes Avatar answered Mar 15 '23 17:03

bdukes