Specify Action on sub-controller when using Html.RenderAction
- by iammaz
I have a UserControl that I call with Html.RenderAction(...), so far so good..
Then I want to specify in the user control, which action should be used
Html.BeginForm("DeleteComment", "Comments", new { Id = "frmDelete" }, FormMethod.Post);%>
<%= Html.SubmitImage( "imgbtnDelete", "/image.png", new { ... })%>
<% Html.EndForm(); %>
And therein lies my problem; this calls the user control's controller/action.
What I want to happen is to call the pages action first and then be able to specify what action to call on the user control's controller.
Is this possible??
Thanks from an MVC noob