asp.net ajax control ModalPopupExtender demo
ModalPopupCss
最初在Default.aspx中使用的是ScriptManager,然后其他是按照上面,出现:
AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.错误
最后参考这里:http://stackoverflow.com/questions/1832533/trouble-switching-to-the-beta-ajaxcontroltoolkit
Adding the following to the aspx file fixed this error for me:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>