单声道上的 Ajax

发布于 2024-07-15 23:38:54 字数 53 浏览 5 评论 0原文

你们知道 mono 的 ajax 工具包(或类似 m$-ajaxtoolkit 的东西)吗?

Do you guys know about an ajax toolkit (or something similar to the m$-ajaxtoolkit) for mono??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

久隐师 2024-07-22 23:38:54

Microsoft 的 ASP.NET AJAX Control Toolkit 在 Mono 上工作,并且是开源的 (Ms-PL)。 不过,这并不妨碍使用 jQuery。 实际上有几个支持 Mono 的第三方 AJAX 库和控制工具包,其中许多都与 ASP.NET AJAX 兼容或结合使用。

Microsoft's ASP.NET AJAX Control Toolkit works on Mono, and is open source (Ms-PL). That doesn't preclude the use of jQuery, though. There are actually several third party AJAX libraries and control toolkits that support Mono, and many are compatible or work in conjunction with ASP.NET AJAX.

一萌ing 2024-07-22 23:38:54

我同意 Brian 的观点,但想补充一点,您应该阅读 Dave Ward 的有关 jQuery 和 ASP.net 的系列。 他确实提炼了无需 MS Ajax 即可使用 jQuery、PageMethods 和 WebForms 所做的事情的精髓。 这些思想直接适用于Mono/Linux环境。

以下是重要帖子的列表:

使用jQuery直接调用ASP.Net Ajax PageMethods

使用 FireBug 学习 jQuery

使用 jQuery 简化调用 ASP.NET 服务

I agree with Brian, but want to add that you should read Dave Ward's series on jQuery and ASP.net. He really distills the essence of what you can do with jQuery, PageMethods, and WebForms without MS Ajax. These ideas are directly applicable to the Mono / Linux environment.

Here's a list of essential posts:

Using jQuery to directly call ASP.Net Ajax PageMethods

Use FireBug To Learn jQuery

Simplify calling ASP.NET Services with jQuery

老街孤人 2024-07-22 23:38:54

我建议您使用 jQuery 自行开发。 无论如何,这就是 m$ 现在正在做的事情。

I'd recommend rolling your own using jQuery. That's what m$ is doing now anyway.

你如我软肋 2024-07-22 23:38:54

调试Mono网站

你还记得,你的机器上没有开发环境吗? 您可以安装它,或者使用 openSuse 下载 Mono liveCD。 但在这样做之前,请注意,GTK#(它是 devenv)不是很用户友好。 甚至更糟糕的是 Eclipse。 因此,我们首先尝试了解是否可以在不输入代码的情况下修复小的兼容性问题。

在 Mono 上调试网站最方便的方法是使用 XSP 和 XSP2 迷你 Web 服务器。 只需进入网站的目录并运行即可。 默认情况下,您将能够使用...访问该站点(它也是为您编写的)。 输入并注意控制台是否有错误。 不? 继续做

最常见的问题是“错误 500”和无意义的堆栈。 如果它包含 ScriptManager 错误类型未找到,则问题出在 Web.config 文件中。 尝试重新生成它以兼容Mono(例如,Mono有不同版本的System.Web.Extensions程序集。在ASP.NET 3.5中它有版本3.5,Mono只有1.0.61025.0(旧的AJAX.NET)。重新创建您的 web.config 您所要做的就是执行“mconfig af AJAX Web.config” 它会创建默认的 web.config 文件,支持 System.Web.Extensions (AJAX 功能)

没有帮助吗?让我们继续看看。堆栈中的时间 – 如果它包含“EnablePageMethods”或“ShouldGenerateScript”或“EncryptString”中的错误 – 问题是序列化对 JSON、XML 和 SOAP 序列化的支持非常有限。有带有 [Serialized] 标记的类,或者您正在使用 PageMethods 传输自己的类 如果是这样,请将其替换为常规字符串(我的奶奶序列化)。

Debugging Mono website

Do you remember, that you have no development environment in this machine? You can install it, or download Mono liveCD with openSuse. But before doing it, please note, that GTK# (it’s devenv) is not very user friendly. It even worse, then Eclipse. So let’s try to understand first whether we can fix small compatibility problems without entering code.

The most convenient method to debug web site on Mono is by using XSP and XSP2 mini web servers. Just enter the directory of the site and run it. By default you’ll be able to access the site by using ... (it also be written for you). Enter and notice whether you have any errors in console. No? Keep doing

The most common problem is “error 500” with nonsense stack. If it contains ScriptManager error Type not found, the problem is in Web.config file. Try to regenerate it to be compatible to Mono (for example, Mono has different version of System.Web.Extensions assembly. In ASP.NET 3.5 it has version 3.5, Mono has only 1.0.61025.0 (the old AJAX.NET). To recreate your web.config all you have to do is to execute “mconfig af AJAX Web.config” It will create default web.config file, supports System.Web.Extensions (AJAX features).

Not helped? Keep doing. Let’s look another time into the stack – if it contains errors in “EnablePageMethods” or “ShouldGenerateScript” or “EncryptString” – the problem is serialization. Mono has very limited support for JSON, XML and SOAP serialization. Try to look into your code and notice if you have classes, marked with [Serializable] or you are transferring your own classes by using PageMethods. If so, replace it with regular strings (my grandma serialization).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文