我们如何在 MVC 视图中使用文本框绑定从 DropDownList 中选择的数据?

How Can We bound the Selected Data From DropDownList With textbox in MVC View?

I need to put value in textbox when i select the dropDownlist item.... If there is way to do so.... Regards

      <div class="form-group"> @Html.LabelFor(model => model.GenreType, new
         { @class = "control-label col-md-2" }) <div class="col-md-10">
         @Html.EditorFor(model => model.GenreType) 
    @Html.DropDownListFor(model => model.GenreType, new SelectList(Enum.GetValues(typeof
(GenericLib.GenreTypes))))
         @Html.ValidationMessageFor(model => model.GenreType) </div>

尝试使用助手 class,