jason
jason

Reputation: 7164

How to edit .cshtml files in ASP.NET MVC5

I have created a simple application that does basic CRUD operations on ASP.NET. The functionality is great but I want to edit the visuality. For example the textbox for int values is like this : enter image description here

I want it to be normal textbox without arrows. I also want bigger textbox for address value. How can I edit .cshtml files for that? The current code for an adress looks like this :

<div class="form-group">
  @Html.LabelFor(model => model.Adres, new { @class = "control-label col-md-2" })
   <div class="col-md-10">
     @Html.EditorFor(model => model.Adres)
      @Html.ValidationMessageFor(model => model.Adres)
</div></div>

Thanks.

Upvotes: 0

Views: 1435

Answers (1)

Steven
Steven

Reputation: 1494

 @Html.TextBoxFor(model => model.Adres)

Upvotes: 3

Related Questions