![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 237 阅读 · 0 评论 -
使用一般处理程序.ashx
一:访问 访问时要带后缀例如:http://localhost:15343/updateAPK.ashx 二下载文件,例如作用更新apk的后台 [csharp] view plain copy public class updateAPK : IHttpHandler {转载 2017-06-27 16:19:36 · 370 阅读 · 0 评论 -
ASP.NET MVC 分部页 PartialViewResult
PartialViewResult返回的也是一个页面,可以使用@Html.Partial加载这个部分页面,需要多次使用的时候可以用到他 [csharp] view plain copy public PartialViewResult _pxcx(string polName, string podName, string carrCode,转载 2017-06-24 09:50:01 · 707 阅读 · 0 评论 -
了解ASP.NET MVC几种ActionResult的本质:FileResult
FileResult是一个基于文件的ActionResult,利用FileResult我们可以很容易地将从某个物理文件的内容响应给客户端。ASP.NET MVC定义了三个具体的FileResult,分别是FileContentResult、FilePathResult和FileStreamResult。在这篇文章中我们将探讨三种具体的FileResult是如何将文件内容对请求进行响应的。[本文已经转载 2017-06-28 08:35:15 · 606 阅读 · 0 评论 -
typeahead搜索提示
一:引入样式文件与js JavaScript" src="~/Content/js/bootstrap-typeahead.js"> 二:建立一个文本框 注意样式冲突一般该input父级对a的样式可能会影响到他 三:绑定typeahead [javascript]转载 2017-06-28 08:44:39 · 501 阅读 · 0 评论