user5136052
user5136052

Reputation:

How to design a editor field in asp.net mvc 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??
??
</div>

Upvotes: 0

Views: 943

Answers (2)

Waleed Baig
Waleed Baig

Reputation: 422

if you just want to show a field you can add input tag give it a name and id, Or you can use the razor syntax to add a text field !! if you want to use that field for datepicker then use Jquery DatePicker This Link might help you Jquery DatePicker

Upvotes: 4

Captain Kenpachi
Captain Kenpachi

Reputation: 7215

@Html.TextBox("SomeName","SomeValue")

Upvotes: 0

Related Questions