0

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.

1 Answer 1

3
 @Html.TextBoxFor(model => model.Adres)
Sign up to request clarification or add additional context in comments.

1 Comment

Don't forget about @Html.TextAreaFor() in the case of address fields.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.