这几天做的项目用到了文件上传,总结一下,加深一下印象吧。嘿嘿..........1.一个添加功能,需要上传图片,上代码。1@{2using(Ajax.BeginForm("Add","PeopleManage",newAjaxOptions(){HttpMethod="Post",OnSuccess="afterAdd"},3new{id="AddFrm",enctype="multipart/form-data"}))4{5//....................6<tr>...
查看全文