简体   繁体   中英

Razor form value didnt show

Return value is contain from controller and also can see the value when I check with inspect my code. But the value didnt show in the text box. I'm stacking here.. someone help me please

<div class="form-group col-md-6">
    <label>လုပ်ငန်းအမျိုးအစား</label><span class="text-danger">*</span>
    @Html.TextBoxFor(m => m.BusinessType, new { type = "text", @class = "form-control",  value = "" })
</div>

this following screen capture is value contain in inspect: 在此处输入图像描述

Delete

type="text", value = ""

in

@Html.TextBoxFor(m => m.BusinessType, new { type = "text", @class = "form-control",  value = "" })

The html helper autogenerates those attributes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM