I'm trying to use the @section within a partial view so that what is included is only in one file. Will this work? This approach doesn't seem to render anything.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
No. It doesn't work. You have to use it in the base .cshtml page.