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

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -