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.
在 Post 上渲染视图后,在视图内调用 RenderAction 将调用 Post 方法。有什么方法可以指定我要调用 Get 方法而不是 Post?
这不是一个单独的请求发生,因此它将使用现有的请求上下文。您可能希望通过名称来区分操作,并使用 ChildActionOnly 属性将该操作标记为仅可通过 RenderAction 获得