
Asp.net
文章平均质量分 82
wumingwuxin
这个作者很懒,什么都没留下…
展开
-
MVC4-View(视图)
一:集合与普通对象[html] view plain copy@foreach (Dao.DTO.DTO_LogisticsDictionary p in ViewBag.dlds) { div class="dict-part clearfix mb20">h3>span>Co转载 2017-06-24 10:29:21 · 272 阅读 · 0 评论 -
使用一般处理程序.ashx
一:访问访问时要带后缀例如:http://localhost:15343/updateAPK.ashx 二下载文件,例如作用更新apk的后台[csharp] view plain copypublic class updateAPK : IHttpHandler {转载 2017-06-27 16:19:36 · 397 阅读 · 0 评论 -
ASP.NET MVC 分部页 PartialViewResult
PartialViewResult返回的也是一个页面,可以使用@Html.Partial加载这个部分页面,需要多次使用的时候可以用到他[csharp] view plain copypublic PartialViewResult _pxcx(string polName, string podName, string carrCode,转载 2017-06-24 09:50:01 · 754 阅读 · 0 评论 -
了解ASP.NET MVC几种ActionResult的本质:FileResult
FileResult是一个基于文件的ActionResult,利用FileResult我们可以很容易地将从某个物理文件的内容响应给客户端。ASP.NET MVC定义了三个具体的FileResult,分别是FileContentResult、FilePathResult和FileStreamResult。在这篇文章中我们将探讨三种具体的FileResult是如何将文件内容对请求进行响应的。[本文已经转载 2017-06-28 08:35:15 · 670 阅读 · 0 评论 -
typeahead搜索提示
一:引入样式文件与js JavaScript" src="~/Content/js/bootstrap-typeahead.js">二:建立一个文本框 注意样式冲突一般该input父级对a的样式可能会影响到他三:绑定typeahead[javascript]转载 2017-06-28 08:44:39 · 539 阅读 · 0 评论