I've created MVC5 application which represent table in web UI, I need that one of the field will be browse text box (or other default control for browse) which user click on it and it open the default browse of windows which he can choose file,how should I do that?
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.name)
</td>
<td>
@Html.DisplayFor(modelItem => item.Browse)
</td>
</tr>
}
controller code
<div class="form-group">
@Html.LabelFor(model => model.Browse, new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Browse)
@Html.ValidationMessageFor(model => model.Browse)
</div>
</div>