asp.net mvc - partial view rendering -


i have partial view in foo folder. want show on home/index view. using partial render , trying locate in temp folder. how write renderpartial render foo\partial view ?

regards, asif hameed

to render specify path in renderpartial this:

<%html.renderpartial("~/areas/fooarea/views/foo.ascx");%> 

obviously replace example path path actual foo partial view.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -