philzhou

导航

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页

2012年5月8日 #

nopCommerce : Updating an existing entity. How to add a new property.

摘要: Updating an existing entity. How to add a new property.This tutorial covers how to add a property to the Affiliate entity that ships with the nopCommerce source code.The data modelEntities will have two classes that are used to map records to a table. The first class defines the properties, fields, 阅读全文

posted @ 2012-05-08 21:07 philzhou 阅读(589) 评论(0) 推荐(0) 编辑

asp.net mvc FluentValidation 的使用

摘要: 原文 Create a new ASP.NET MVC 3 project using the default Visual Studio Template Download the latest FluentValidation.NET Reference the FluentValidation.dll and FluentValidation.Mvc.dll assemblies (be... 阅读全文

posted @ 2012-05-08 16:07 philzhou 阅读(1082) 评论(0) 推荐(0) 编辑

NopCommerce 自定义DataAnnotation DisplayAttribute

摘要: System.dll(.Net Framework 4.0 )中已有DisplayNameAttribute 定义,被该标签注释的Model属性,在View中使用Html.LabelFor便可获取设置的字段名称。namespace System.ComponentModel{ // 摘要: // 指定属性、事件或不采用任何参数的公共 void 方法的显示名称。 [Attr... 阅读全文

posted @ 2012-05-08 09:57 philzhou 阅读(560) 评论(0) 推荐(0) 编辑

2012年4月13日 #

Jquery DateTimePicker Config and Code Annalyze

摘要: 设置location为中文。// set the cn-zh location this.regional['cn'] = { // Default regional settings closeText: '关闭', // Display text for close link prevText: '上一个', // Display text for previous month link nextText: '下一个', // Display text for next month link ... 阅读全文

posted @ 2012-04-13 15:04 philzhou 阅读(2800) 评论(0) 推荐(0) 编辑

2012年4月5日 #

C# 委托、事件,lamda表达式

摘要: 参考文章1. 委托Delegate C#中的Delegate对应于C中的指针,但是又有所不同C中的指针既可以指向方法,又可以指向变量,并且可以进行类型转换,C中的指针实际上就是内存地址变量,他是可以直接操作内存的,通过内存地址直接访问变量,直接调用方法。 而C#中的Delegate是强类型的,也就是说在声明委托时就已经指定了该变量只能指向具有特定参数,以及返回值的方法。 使用delegate就可以直接建立任何名称的委托类型,当进行系统编译时,系统就会自动生成此类型。您可以使用delegate void MyDelegate() 方式建立一个委托类,并使用ILDASM.exe观察其成员。由ILD 阅读全文

posted @ 2012-04-05 20:32 philzhou 阅读(13476) 评论(0) 推荐(3) 编辑

2012年2月20日 #

jQuery.ProgressBar 使用示例

摘要: 1. 下载Jquery.ProgressBar 地址 2. 引入将Jquery.ProgressBar引入ASP.NET MVC 2.0项目。 如下图 3. 修改jquery.progressbar.js中与图片链接有关的部分。 4. 页面代码。 $(document).ready(function () { $(".progressBar").eac... 阅读全文

posted @ 2012-02-20 11:47 philzhou 阅读(5599) 评论(0) 推荐(0) 编辑

2012年2月8日 #

Jquery.Form 异步提交表单实例

摘要: http://www.aqee.net/docs/jquery.form.plugin/jquery.form.plugin.html#getting-started 1. 在你的页面里写一个表单。一个普通的表单,不需要任何特殊的标记: <form id="myForm" method="post" action="/Home/AjaxForm"><div>Name:<input id="user... 阅读全文

posted @ 2012-02-08 15:47 philzhou 阅读(34831) 评论(1) 推荐(1) 编辑

2012年2月3日 #

Reporting Service 动态参数设置(转)

摘要: 原文1:创建新报表 在开始使用动态查询之前,您必须首先创建一个带有报表的报表服务器项目,然后向该项目中添加一个报表项。创建报表服务器项目在 Business Intelligence Development Studio 中,报表包含在报表服务器项目中。 创建新的报表服务器项目1. 单击“开始”,依次指向“程序”和 Microsoft SQL Server 2005,再单击 Business Intelligence Development Studio。2. 在“文件”菜单上,指向“新建”,再单击“项目”。 3. 在“项目类型”列表中,单击“商业智能项目”。 4. 在“模板”列表中,单击“报 阅读全文

posted @ 2012-02-03 09:04 philzhou 阅读(835) 评论(0) 推荐(0) 编辑

2012年1月10日 #

Unity 2.0 HelloWord Example

摘要: Unity 是Microsoft的开源项目Enterprise Library的一个Ioc组件,与Mvc也有很好的集成,既可以通过代码来进行运行时依赖注入,也可以通过配置文件来进行设计时依赖注入,下面是一个使用配置文件的小例子。配置文件App.config<?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="unity" type="Microsoft.Practi 阅读全文

posted @ 2012-01-10 21:11 philzhou 阅读(907) 评论(0) 推荐(0) 编辑

2011年12月15日 #

Programmatically Retrieving a Stored Procedure's Parameters 获取Sql Server 存储过程参数

摘要: 原文 IntroductionStored procedures in SQL Server are similar to methods in C# and Visual Basic code. They encapsulate one or more statements into a single, parameterized construct. Both stored procedur... 阅读全文

posted @ 2011-12-15 19:23 philzhou 阅读(356) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页