Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有许多用于以不同格式呈现媒体(主要是嵌入视频)的部分视图。我现在有一个要求,让我在 iframe 中显示这些视频。有没有一种方法可以返回一个嵌入了部分视图的最小 HTML 页面?
查看这些关于如何将部分视图呈现为字符串的讨论。
在 ASP.NET MVC Beta 中将 RenderPartial 渲染为字符串
RenderPartial 到字符串