asp.net mvc - No partialview found at location? -
i have asp.net mvc app. there partial view @ following location:
areas/myarea/views/home/_mypartial.cshtml
when try reference partial:
@html.partial("~/areas/myarea/views/home/_mypartial.cshtml", model); i error:
the partial view '/areas/myarea/views/home/_mypartial' not found or no view engine supports searched locations. following locations searched: ~/areas/myarea/views/home/_mypartial
the host view @ /views/home/
is syntax wrong or there else need work?
Comments
Post a Comment