Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
.NET MVC3 Razor Webアプリケーションで、EditorTemplate別のWebアプリケーションにあるを使用するにはどうすればよいAreaですか?(HtmlHelperのEditorForメソッドを使用)
EditorTemplate
Area
「別の領域」を正しく解釈している場合:明示的なターゲティングを使用すると、いつでもオブジェクトを直接参照できます。
MyApplication.Helpers.MyEditorTemplate myTemplate;
エディターテンプレートをエリア外に移動できますか?ルート/Views/ Shared / EditorTemplatesに配置すると、どの領域からでもアクセスできます。