How to order dropdownlist?

Asked

Viewed 293 times

0

How can I order the Dropdownlist?

        <div class="form-group">
            @Html.LabelFor(model => model.id_pessoa, "Pessoa", htmlAttributes: new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownList("id_pessoa", null, htmlAttributes: new { @class = "form-control" })
                @Html.ValidationMessageFor(model => model.id_pessoa, "", new { @class = "text-danger" })
            </div>
        </div>
  • What is the type of property model.id_pessoa?

  • You could put your controller code?

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.