你好,
根据你的描述, 我想建议你使用下面这样的方式:
Layout:
@ViewBag.Title@if(IsSectionDefined("AddToHead")){@RenderSection("AddToHead",required:false)}@RenderSection("AddToHeadAnotherWay",required:false)Partial View:
@model ProjectsExt.Models.DirectoryObject
@section AddToHead{
}
希望可以帮到你。
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click
<a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.