0
<Unique code>
<CodeBlock1>
<UniqueCode>
<CodeBlock1>
這是我的.cshtml頁面的基本佈局。重新使用一段代碼
This is a c# MVC 4 Razor web project.
上面的代碼在我的_Layout.cshtml
頁面。
什麼是我可以從該頁面中刪除<CodeBlock1>
並將代碼移動到一個位置,並仍然在我的_Layout.cshtml
頁面的兩個位置顯示它的方法。
我想我添加一個_Navigation.cshtml
(即複製其資產淨值代碼)
但我怎麼會那麼表明我_Layout.cshtml
網頁上的代碼?