ajax方法中MapPath()方法不能使用,
如
MapPath("FileExchanged/" + System.IO.Path.GetFileName(InFile.PostedFile.FileName));
替换方法是使用
HttpContext.Current.Request.PhysicalApplicationPath+("FileExchanged\\" + System.IO.Path.GetFileName(fileName)) 来替换。
另:<input type="file" id="" runat="server"/> 不能与微软的ajax一块使用