asp.net mvc - How I can call a Partial View from any controllers? -


i'm working asp.net mvc4 , view engine razor. how can call partial view controllers? have view: reclamante = claimant, victima = victim, conductor = driver , drc in each controller need call partial view "registro de persona", can do? in code have this: view:

$("#newvictima").click(function () {     $('#dialogvictima').load('@url.action("raregistropersona", "ratabvictima", new { area = "reclamos" })',             function (response, status, xhr) {                 $('#dialogvictima').dialog('open');          });     }); 

controller (ratabvictima)

public actionresult raregistropersona(){     return view("_raregistropersona"); } 

i want use view partial ("registro de persona") in each controller , not create same partial view each controller, ho can it?

enter image description here

redirecttoaction("action name", "controller name", new { area = "area name" }); 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -