随笔分类 -  03 MVC

Mvc.JQuery.Datatables
摘要:1.NuGet安装Mvc.JQuery.Datatables、Mvc.JQuery.Datatables.Templates和JQuery.Datatableshttps://github.com/mcintyre321/mvc.jquery.datatables 阅读全文
posted @ 2014-03-13 10:38 顺风车 阅读(405) 评论(0) 推荐(0)
jQuery dataTables 网格
摘要:对于服务器来说,可以通过请求参数来获得当前的操作信息。类型名称说明intiDisplayStart显示的起始索引intiDisplayLength显示的行数intiColumns显示的列数 stringsSearch全局搜索字段booleanbEscapeRegex全局搜索是否正则booleanbSortable_(int)表示一列是否在客户端被标志位可排序booleanbSearchable_(int)表示一列是否在客户端被标志位可搜索stringsSearch_(int)个别列的搜索booleanbEscapeRegex_(int)个别列是否使用正则搜索intiSortingCols 排序 阅读全文
posted @ 2014-03-12 16:39 顺风车 阅读(568) 评论(0) 推荐(0)
特性扩展:WebActivatorEx
摘要:WebActivator:PreApplicationStartMethod 属性,用于标记作为东西您获取 Web 应用程序启动时调用的方法,在Application_Start前。PostApplicationStartMethod 属性,Application_Start 后。 阅读全文
posted @ 2014-03-06 14:02 顺风车 阅读(1121) 评论(0) 推荐(0)
SignalR--Http/WebSockets消息推送
摘要:官网API:http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server参考:http://www.cnblogs.com/fengyishou/archive/2013/05/07/3065184.htm... 阅读全文
posted @ 2014-03-06 13:36 顺风车 阅读(243) 评论(0) 推荐(0)
.NET Linq/MVC/架构
摘要:学习参考:http://www.cnblogs.com/wangiqngpei557/p/3576685.html 阅读全文
posted @ 2014-03-03 12:44 顺风车 阅读(127) 评论(0) 推荐(0)
Asp.net MVC Razor Generator
摘要:Razor Generator开源工具使用简介:“Razor Generator” 前生“Razor Single File Generator for MVC”这可以将MVC视图文件【.cshtml】预编译成类文件。在项目发布后可以去除Views下的【.cshtml】文件,正常运行。可用于集成MVC插件式编程Plugins。Razor Generator 工具安装:选择工具 -> 扩展管理器 ,搜索'RazorGenerator'。MVC项目下,NuGet管理包,搜索‘RazorGenerator.Mvc或RazorGenerator.MsBuild’。RazorGen 阅读全文
posted @ 2014-02-27 14:41 顺风车 阅读(1554) 评论(0) 推荐(0)
转载: Asp.net常见word,excel,ppt,pdf在线预览方案
摘要:参考链接:http://www.cnblogs.com/wolf-sun/p/3569960.html 阅读全文
posted @ 2014-02-27 09:16 顺风车 阅读(373) 评论(0) 推荐(0)
asp.mvc 插件式框架
摘要:参考文档:http://blog.csdn.net/bitfan/article/details/17260775http://www.cnblogs.com/Mainz/archive/2012/03/06/2382653.html#!commentshttp://www.cnblogs.com/wediscuss/p/3486062.html 阅读全文
posted @ 2014-02-26 13:29 顺风车 阅读(204) 评论(0) 推荐(0)
nopCommerce_3.00-Nop.Core.Caching
摘要:namespace Nop.Core.Caching{ /// /// Cache manager interface /// public interface ICacheManager { /// /// Gets or sets the value associated with the specified key. /// /// Type /// The key of the value to get. /// The value associated with ... 阅读全文
posted @ 2014-02-12 18:04 顺风车 阅读(338) 评论(0) 推荐(0)
ASP.NET MVC性能调试工具-MvcMiniProfiler
摘要:http://www.cnblogs.com/qiuliang/archive/2011/12/01/2270909.html 阅读全文
posted @ 2014-02-11 16:39 顺风车 阅读(136) 评论(0) 推荐(0)
ASP.NET MVC中混合WebForm
摘要:新建一个名为WebForms的文件夹用于存放WebForm页面文件。//忽略对WebForms路径的路由routes.IgnoreRoute("WebForms/{weform}");http://www.cnblogs.com/snowdream/archive/2009/04/17/winforms-in-mvc.html 阅读全文
posted @ 2014-02-08 17:46 顺风车 阅读(208) 评论(0) 推荐(0)
ASP.NET 路由
摘要:URL 模式可以包含文本值和变量占位符(也称为“URL 参数”)。 文本和占位符位于由斜杠 (/) 字符分隔的 URL 段中。当生成请求时,URL 分析为段和占位符,变量值提供给请求处理程序。 此过程类似于分析查询字符串中的数据并将该数据传递给请求处理程序的方法。 在两种情况下,变量信息都包括在 URL 中并以键值对的形式传递给处理程序。 对于查询字符串,键和值都位于 URL 中。 对于路由,键是在 URL 模式中定义的占位符名称,只有值位于 URL 中。在 URL 模式中,可以通过用大括号({和})括住占位符来定义占位符。 可以在一个段中定义多个占位符,但必须用一个文本值分隔开。 例如,{l 阅读全文
posted @ 2014-01-24 14:52 顺风车 阅读(250) 评论(0) 推荐(0)
MVC视图中ViewStart/RenderSection/Layout/Partial
摘要:1.母板页_Layout.cshtml2.部分视图3.默认Layout引用的使用(_ViewStart.cshtml)Layout = "~/Views/Shared/_Layout.cshtml"; //Layout = null;@RenderBody()@RenderSection("MasterPart", false) //("名称","是否是必须的"),如果是必须的那么子页面必须实现该方法,否则会报错。@section MasterPart{}@Html.Partial("~/Views/Sh 阅读全文
posted @ 2014-01-23 09:58 顺风车 阅读(323) 评论(0) 推荐(0)
MVC Model 数据注解与验证
摘要:常用验证特性:using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema;View Code [Required] 必填[StringLength(20)] 字符长度限制20[StringLength(255,MinimumLength=6)] 字符最长255,最短6[RegularExpression(@"^[1-9]\d*$",ErrorMessage="请输入正整数")] 正则表达式[Range(0,1000)] 限定数 阅读全文
posted @ 2014-01-14 16:46 顺风车 阅读(809) 评论(0) 推荐(0)
MVC Model Binder 规则
摘要:http://www.cnblogs.com/mszhangxuefei/archive/2012/05/15/mvcnotes_30.html使用默认的Model Binder(Using the Default Model Binder)尽管一个应用程序有多个binders,大多数都是依赖于内置的binder类——DefaultModelBinder。这也是当action调用者找不到自定义的binder时使用的binder。默认情况下,这个model binder搜索了4个路径,如下所示: Request.Form:HTML表单提供的值 RouteData.Values:使用应用程序路由获 阅读全文
posted @ 2013-11-27 17:40 顺风车 阅读(292) 评论(0) 推荐(0)
C# 4.0 新特性
摘要:http://www.cnblogs.com/webabcd/archive/2010/05/27/1744899.html在MVC中Controller的action方法 常用的:可选参数和参数默认值 /* * 命名参数和可选参数 * 命名参数:调用方法时,可以不按位置传递参数,而是指定参数的命名来传值 * 可选参数:声明方法中的参数时,可以为其设置默认值,那么在调用该方法时,这种可选参数是可以忽略的 */using System;using System.Collections.Generic;using System.Linq;using System.Web;using System. 阅读全文
posted @ 2013-11-27 17:37 顺风车 阅读(200) 评论(0) 推荐(0)
MVC 依赖注入/控制反转
摘要:http://www.cnblogs.com/cnmaxu/archive/2010/10/12/1848735.htmlhttp://www.cnblogs.com/artech/archive/2011/09/15/UnityDemo.htmlIOC主要用在如下两个方面1、同一个模块(或者子系统)中上层对下层的调用,使层与层尽量相互独立;2、模块(或者子系统)之间的相互调用,使模块之间尽量相互独立。 阅读全文
posted @ 2013-11-18 18:02 顺风车 阅读(182) 评论(0) 推荐(0)