ASP.NET MVC 3管窥动态呈现,并从动态列表视图中的链接动态、视图、并从、链接

2023-09-11 00:52:44 作者:喜性孤冷

在我的MVC 3应用程序,我将有一个观点,即包含一个局部视图。视图本身会产生动态生成的链接的列表。链接有可能造成局部视图呈现该链接的项目的详细信息。

In my MVC 3 application, I will have a view that will contain a partial view. The view itself will have a list of dynamically generated links. The link has to cause the partial view to render detailed information for that linked item.

我会使用Ajax这个?如果是这样,因为我还没有使用Ajax的工作之前,有没有文档的MVC 3应用程序使用它吗?

Would I use Ajax for this? If so, since I haven't worked with Ajax before, is there any documentation for using it in a MVC 3 app?

也是第一次加载视图时,局部视图要么无法加载或理想的显示另一个独立的部分观点。在这样做的一个很好的方式有什么想法?

Also when the view is first loaded, the partial view will either not be loaded or ideally show another separate partial view. Any thoughts on a good way of doing this?

感谢您的帮助。

推荐答案

解决这个问题,我发现是使用Ajax助手来与MVC 3框架的最简单的方法。阿贾克斯视频的MVC 3 Pluralsight 做了一个惊人的工作在简洁的解释如何使用这个功能的基础知识。

The easiest way of solving this problem that I found was using Ajax helpers that come with the MVC 3 framework. The Ajax video for MVC 3 on Pluralsight did a phenomenal job at succinctly explaining the basics of how to use this feature.

 
精彩推荐
图片推荐