3
のIDを取得します。http://bradwilson.typepad.com/blog/2009/10/aspnet-mvc-2-templates-part-4-custom-object-templates.htmlMVCは、次の記事でオブジェクト
<%= Html.Editor(prop.PropertyName) %>
Html.Editor MVCとテキストボックスが名前を生成し作成します。どのようにしてその名前を取得/アクセスできますか? ID?
<input type="text" value="Right" name="Template.RightColumn.ContainerName" id="Template_RightColumn_ContainerName">
と私はこれを生成したい:
は、だから私のコードでこれが生成されます
<div id="Template_RightColumn_ContainerName"></div>
ので、私はPropertyIdにアクセスする必要があります。どうすればいいのですか?
ありがとうございました