脚本#和Asp.Net的UpdatePanel兼容性 [英] Script# and Asp.Net updatepanels compatibility

查看:87
本文介绍了脚本#和Asp.Net的UpdatePanel兼容性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个简单的问题,NikhilK回答这个<一个href=\"http://stackoverflow.com/questions/5027665/new-version-of-script-0-6-and-asp-net-ajax-where-is-microsoftajaxext-js\">question:
脚本#不支持ASP.NET AJAX了。

This is a simple question, NikhilK answered to this question: "Script# doesn't support ASP.NET Ajax anymore"

这是否意味着我们不能使用Asp.net的UpdatePanel(这需要一个ScriptManager)在同一个页面,我们加载mscorlib.js?即使mscorlib程序在操纵不属于UpdatePanel内的DOM元素?

Does that mean that we can't use Asp.net UpdatePanels (which need a ScriptManager) in the same page where we load mscorlib.js? Even if mscorlib is manipulating DOM elements that are not inside the updatepanel?

推荐答案

当我提到的是不支持asp.net阿贾克斯,这主要是两方面的语句:

When I mentioned asp.net ajax is not supported, it is primarily a two-fold statement:


  1. MSAjax组件允许你对编程的msajax脚本不再列入。

  2. 有造成生成的脚本,以使用msajax脚本定义的类型系统的编译器的模式。

从概念上讲,你应该能够加载任何页面使用它mscorlib.js和方案,其中包括使用asp.net AJAX(和更新面板)。作为抬头,你可能会遇到一个特定的问题...... mscorlib.js扩展Array.prototype,我不认为会影响msajax脚本,但可能会影响到一些其他的脚本(如共享点脚本)。

Conceptually you should be able to load mscorlib.js and program using it in any page, including one using asp.net ajax (and update panels). As a heads-up you may run into one particular issue... mscorlib.js extends Array.prototype, which I don't think affects msajax scripts, but might affect some other scripts (eg. sharepoint scripts).

在未来,我计划在不同的生成脚本,不会要求延长Array.prototype,但这项工作尚未完成。

In the future, I plan to generate scripts differently that would not require extending Array.prototype, but that work hasn't been done yet.

所以希望这澄清的事情。如果你尝试遇到问题,我很想知道。我不能保证他们会被修复(尤其是考虑到即使asp.net主要集中各地的jQuery而不是老msajax脚本),但我可以尝试帮助,看看其中是否有合理的解决方法。

So hopefully that clarifies things. If you try and run into issues, I'd love to know. I can't guarantee they'll be fixed (esp. given that even asp.net is primarily focused around jQuery rather then the old msajax scripts), but I can try helping to see if any of them have reasonable workarounds.

这篇关于脚本#和Asp.Net的UpdatePanel兼容性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆