0

In contemplating my next asp.net site, where I am going to be dynamically generating href-laden html to display, I am unsure as to which approach to take -- I don't know yet wheter I will use AJAX and JSON (calling server-side code from jQuery in a .cshtml file to return JSON), or simply use jQuery to generate the html client-side.

A possible advantage of going with the latter, pure client-side jQuery approach would be, I would think, performance, as the only trips to the server will be to retrieve non-local resources (images stored elsewhere that I will reference via hrefs).

Am I forgetting something/failing to take something into account, or am I right in reasoning that AJAX may be "overkill" or even less performant in my case?

4

1 回答 1

0

我在 Albahari 男孩的“C# 5.0 in a Nuts Hell”中看到,在 asp.net 第 195 页的一节中,“但是,您可以通过客户端脚本或 AJAX 等技术来提高交互性和响应性。 ..”

所以,我认为我的想法去客户端可能是我需要的最好/最直接的。

于 2013-06-11T22:13:31.067 回答