I am struggling with rendering, the problem is that it calls the wrong action method on my controller.
My Users controller has two action methods called edit: one for get and one for post-requests:
public virtual ActionResult Edit(int id) {
In my opinion, I call Renderaction as follows:
Html.RenderAction("Edit", "Users", new { id = 666});
Now the problem is that I want the GET action method to display. However (perhaps because the model also contains a property called ID?), Renderaction instead calls my POST action method.
What is the right way to do this? I use ASP.NET MVC 3 RC, if that matters.
Thanks,
Adrian
asp.net-mvc asp.net-mvc-3 renderaction
Adrian grigore
source share