
mvc
Julian_Huang
这个作者很懒,什么都没留下…
展开
-
identity 读取用户表
public JsonResult Users() { Object o = new Object(); using (var db = new ApplicationDbContext()) { o = db.Users.FirstOrDefault().Weixin;原创 2015-05-26 20:57:54 · 548 阅读 · 0 评论 -
mvc 上传文件
View@using (Html.BeginForm("FileUpload", "Home", FormMethod.Post, new { enctype = "multipart/form-data" })){ <br /> <input type="file" name="file" /> <input type="submit" value="Upload Fil原创 2015-06-11 21:12:55 · 412 阅读 · 0 评论 -
mvc5接收xml
[HttpPost]public ActionResult Foo(){ using (var reader = new StreamReader(Request.InputStream)) { string xml = reader.ReadToEnd(); // process the XML ... }}参考链接原创 2015-05-26 10:32:59 · 580 阅读 · 0 评论