我在我的mvc项目中使用<input type="file" id="fileId" name="fileId"/>和 <% = Html.TextBoxFor (x => x.FileName, new {@ class = "className", maxlength = 255, id = "fileName"})%>.我想在文本框中保存在INPUT元素中选择的文件名.我怎样才能做到这一点?
<input type="file" id="fileId" name="fileId"/>
<% = Html.TextBoxFor (x => x.FileName, new {@ class = "className", maxlength = 255, id = "fileName"})%>
asp.net-mvc
asp.net-mvc ×1