How can I get Html.RenderAction to call the Get method on a Post?
Asked Answered
M

1

8

After rendering a view on a Post, a call to RenderAction inside the view will call for the Post method. Is there any way to specify I want to call the Get method instead of the Post?

Mathematician answered 21/9, 2010 at 3:18 Comment(0)
Q
12

It's not a separate request happening, so it's going to use the existing request context. You may want to differentiate the action by its name, and use the ChildActionOnly attribute to mark that action as only being available via RenderAction

Quillet answered 21/9, 2010 at 3:47 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.