ASP.NETのAJAXでエラー? The control with ID...requires a ScriptManager on the page...

ASP.NETのフォームにAJAX ExtensionsのUpdatePanelやScriptManagerを配置する。
これで普通に動くはずだが、

The control with ID "コントロール名" requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

なんてエラーメッセージが出る時がある。

調べたらScriptManagerはUpdatePanelよりも前に配置する必要があるらしい。
確かにScriptManagerの位置を変更したらエラーが出るようになった…かもしれないw

推測だが、ページは上から評価されているんだろうね。
で、ScriptManagerがないのにUpdatePanelがある!ということでエラーになったのだろう。

このブログの人気の投稿

コピーした行の挿入が表示されない時はフィルタされていないかチェック

Excel で一部の図形だけ固定する