jeudi 20 août 2015

How to design a editor field in asp.net mvc 3 to display only the textbox?

As i have not created a field for the current date in a database table, and not also in model class also, but i want to display only the view of that field?

<div class="editor-label">
  @Html.Label("Date")
</div>                     
<div class="editor-field">
  //here is the problem what to do??
  @Html.EditorFor(m => m.????)
  @Html.ValidationMessageFor(model => model.???)
</div>

Aucun commentaire:

Enregistrer un commentaire