前台

<script type="text/javastript">

  $(fuction(){

    $("#btnsub").click(fuction(){

      $("#frm").ajaxSubmit({

        url:"/Ajax/ProcessImgUpLoad",

        type:"Post",

        success: fuction(){.....}

      });

    });

  })

</...>

<from name="from1" enctype= "mulipart/form-data">

  <input type="file" name="imageFile"/>

  <input type = "submit" value="上传"/>

</from>

后台

pulic ActionResult ProcessImageUpLoad()

{

  var file = Request.File["imageFile"];

  string path = "/upload/"+file.FileName;

  file.SaveAs(Request.Math(Path));

  return Content("OK");

}

最新文章

  1. Java集合类的总结
  2. sticky组件的改进实现
  3. vim一些常用的快捷键
  4. android 布局优化常用技巧
  5. String详解, String和CharSequence区别, StringBuilder和StringBuffer的区别 (String系列之1)
  6. jquery选择器(原创)&lt;四&gt;
  7. LightOj 1098 - A New Function(求1-n所有数的因子和)
  8. 关于在windows下使用mingw并行编译wxwidgets时的错误
  9. plsql登录弹白框
  10. .NET世界各成员之间的关系
  11. [LeetCode]题解(python):108-Convert Sorted Array to Binary Search Tree
  12. iOS 之UICollectionView 之原理介绍
  13. poj2528 线段树+离散化 (倒序)
  14. Android异常分析(转)
  15. Google官方网络框架-Volley的使用解析Json以及加载网络图片方法
  16. FMC
  17. python提取文件中的方法名称
  18. .Net 读取配置文件 xml
  19. Head First Servlets &amp; JSP 学习笔记 第七章 —— 作为JSP
  20. Spring配置文件中的那些标签意味着什么(持续更新)

热门文章

  1. Python多任务之线程
  2. 手动模拟JDK动态代理
  3. Linux的命令(待更新)
  4. Springboot + Mysql8实现读写分离
  5. 《完美解决系列》Android5.0以上 Implicit intents with startService are not safe
  6. git远程分支不显示问题解决
  7. 关于javascript中的prototype
  8. 某CTF平台一道PHP代码审计
  9. numpy.rollaxis函数
  10. python selenium之CSS定位