2011-05-05 88 views
0

我想通过$ .post命令选择我的文件?目前,我有它喜欢

<% using (Html.BeginForm("Index", "Upload", FormMethod.Post, new { enctype = "multipart/form-data" })) {%> 

<input type='file'></input> 
<button>upload</button> 

<%}%> 
+0

什么是你的问题? – 2011-05-05 06:36:22

回答

0

这是不可能
你应该使用iframe技术(搜索这个),这不是ajax,而是给予'ajax感觉'。
干杯