c# - ActionLink within RenderAction -
I am using RenderAction to include the output of several "components" in my view but every time I use the RenderAction Using the call to tell the ActionLink to produce the wrong routes within the nested action. (Even for the rootlink.) If the action is said directly, the correct paths are prepared.
So I call my parent several times in the index action of seeing:
& lt;% HTML.RenderAction & lt; StateAdminController & gt; (C => C. Index (Statetype.Avent)); & Gt%; & Lt;% HTML.RenderAction & lt; StateAdminController & gt; (C => C. Indices (State Type. Booking)); & Gt%; & Lt;% html renderer action & lieutenant; State Admin Controller & gt; (C => C. Indices (State Type Communication)); & Gt%; & Lt;% HTML.RenderAction & lt; StateAdminController & gt; (C => Ind. (Statetype payment);); & Gt%;
And in the nested index-view, I try to ActionLink in the edit mode of StateAdminController:
& lt;% = Html.ActionLink & Lt; State Admin Controller & gt; (C = & gt; C. Edit (state.id), "beerbitan")% & gt;
But ActionLink indicates the index-action view of my parents.
Is this a known issue? Can I do something wrong?
Thank you in advance.
Joaquim
How should the application be called, when the action is called with the render action? It is worth noting that when you use rendering, the controller is being said directly No) Therefore, it is not going from your routing table.
Comments
Post a Comment