0
我想通过$ .post命令选择我的文件?目前,我有它喜欢
<% using (Html.BeginForm("Index", "Upload", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
<input type='file'></input>
<button>upload</button>
<%}%>
我想通过$ .post命令选择我的文件?目前,我有它喜欢
<% using (Html.BeginForm("Index", "Upload", FormMethod.Post, new { enctype = "multipart/form-data" })) {%>
<input type='file'></input>
<button>upload</button>
<%}%>
这是不可能。
你应该使用iframe技术(搜索这个),这不是ajax,而是给予'ajax感觉'。
干杯
Microsoft支持给出了一些说明:
什么是你的问题? – 2011-05-05 06:36:22