拷贝C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\目录下的MicrosoftAjaxLibrary
到对应WEB程序的路径,我的是~/scripts/路径
scriptmanager中修改为如下:
<asp:ScriptManager ID="scriptmanager1" EnablePartialRendering="true" runat="Server" >
<Scripts>
<asp:ScriptReference Name="MicrosoftAjax.js" Path="~/scripts/MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjax.js" />
<asp:ScriptReference Name="MicrosoftAjaxWebForms.js" Path="~/scripts/MicrosoftAjaxLibrary/System.Web.Extensions/1.0.61025.0/MicrosoftAjaxWebForms.js" />
</Scripts>
</asp:ScriptManager>
注意上面的路径要与拷贝的目录相对应.
引用地址:
http://weblogs.asp.net/bleroy/archive/2007/01/31/how-to-work-around-the-quot-access-denied-quot-cross-domain-frame-issue-in-asp-net-ajax-1-0.aspx
附件是修改后的microsoftajax.js和microsoftajax.debug.js, 但设置了上面的路径之后,可以不用修改这两个文件.
/Files/margiex/1.0.61025.0.rar