Debasis Mohapatra

Debasis Mohapatra

  • NA
  • 381
  • 56.7k

How to do dropdown textbox in asp.net mvc

Jan 31 2019 6:51 AM
Please find the below code for view page
 
<div class="col-md-6 col-xs-12">
<div class="form-group row clearfix">
<label class="control-label col-md-4 col-sm-4 col-xs-6">Leader</label>
<div class="col-md-8 col-sm-8 col-xs-6">
@Html.TextBoxFor(m => m.leader, new { @class = "form-control", @required = "required", @id = "txtCode", @placeholder = "Leader Name" })
@Html.ValidationMessageFor(m => m.leader)
</div>
</div>
</div>
 
insted of textbox i want a dropdownbox. i am getting error.  

Answers (4)