<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_张富荣</title><subtitle type="text">为程序打杂的我      欢迎访问http://www.cnhy168.com        技术交流群:58325455</subtitle><id>http://feed.cnblogs.com/blog/u/33732/rss</id><updated>2009-10-06T10:28:23Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/33732/rss"/><entry><id>http://www.cnblogs.com/8user/archive/2009/06/30/1514123.html</id><title type="text">partial关键字的含义和使用</title><summary type="text">partial关键字 C#2.0提供的新关键字，用来将一个class、struct或interface的定义拆分，写在不同的源文件中。每个源文件包含类定义的一部分，编译应用程序时将把所有部分组合起来。在以下几种情况下需要拆分类定义： 1.处理大型项目时，使一个类分布于多个独立文件中可以让多位程序员同时对该类进行处理。 2.使用自动生成的源时，无需重新创建源文件便可将代码添加到类中。Visual S...</summary><published>2009-06-30T08:45:00Z</published><updated>2009-06-30T08:45:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/30/1514123.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/30/1514123.html"/><content type="text">partial关键字 C#2.0提供的新关键字，用来将一个class、struct或interface的定义拆分，写在不同的源文件中。每个源文件包含类定义的一部分，编译应用程序时将把所有部分组合起来。在以下几种情况下需要拆分类定义： 1.处理大型项目时，使一个类分布于多个独立文件中可以让多位程序员同时对该类进行处理。 2.使用自动生成的源时，无需重新创建源文件便可将代码添加到类中。Visual S...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500498.html</id><title type="text">JS仿Open()打开一个新窗口，并不是弹出新窗口 </title><summary type="text">JS仿Open()打开一个新窗口，并不是弹出新窗口，貌似可以绕过IE的阻止。[代码][代码]</summary><published>2009-06-10T07:04:00Z</published><updated>2009-06-10T07:04:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500498.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500498.html"/><content type="text">JS仿Open()打开一个新窗口，并不是弹出新窗口，貌似可以绕过IE的阻止。[代码][代码]</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500497.html</id><title type="text">判断是否含有汉字</title><summary type="text">using System.Text.RegularExpressions;Regex.IsMatch(text, @"[\u4e00-\u9fa5]")//含有汉字</summary><published>2009-06-10T07:04:00Z</published><updated>2009-06-10T07:04:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500497.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500497.html"/><content type="text">using System.Text.RegularExpressions;Regex.IsMatch(text, @"[\u4e00-\u9fa5]")//含有汉字</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500496.html</id><title type="text">如何统计代码行执行的时间？ </title><summary type="text">1. 问题请计算下列代码执行所耗费的时间，给出通用的解决方法？List&lt;Int32&gt; myList=new List&lt;Int32&gt;(); for(Int32 i=0;i&lt;ICount;i++) { myList.Add(i); }2. 解决方法using (OperationTimer op=new OperationTimer ("Generic ")){ Lis...</summary><published>2009-06-10T07:03:00Z</published><updated>2009-06-10T07:03:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500496.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500496.html"/><content type="text">1. 问题请计算下列代码执行所耗费的时间，给出通用的解决方法？List&lt;Int32&gt; myList=new List&lt;Int32&gt;(); for(Int32 i=0;i&lt;ICount;i++) { myList.Add(i); }2. 解决方法using (OperationTimer op=new OperationTimer ("Generic ")){ Lis...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500494.html</id><title type="text">深入探讨IsPostBack【转】</title><summary type="text">1 IsPostBack介绍IsPostBack是Page类有一个bool类型的属性，用来判断针对当前Form的请求是第一次还是非第一次请求。当IsPostBack＝true时表示非第一次请求，我们称为PostBack，当IsPostBack＝false时表示第一次请求。在asp.net框架内部有很多的场景需要判断IsPostBack，比如LoadAllState等操作就需要在PostBack的时...</summary><published>2009-06-10T07:02:00Z</published><updated>2009-06-10T07:02:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500494.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500494.html"/><content type="text">1 IsPostBack介绍IsPostBack是Page类有一个bool类型的属性，用来判断针对当前Form的请求是第一次还是非第一次请求。当IsPostBack＝true时表示非第一次请求，我们称为PostBack，当IsPostBack＝false时表示第一次请求。在asp.net框架内部有很多的场景需要判断IsPostBack，比如LoadAllState等操作就需要在PostBack的时...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500493.html</id><title type="text">时间的正则表达式验证</title><summary type="text">今天的开发中用到了一个正则表达式验证时间的地方，原来一直是用javascript进行的验证，copy高人的代码，也没有深究过，今天这个是在别人的 基础上加的，只是原来的时间验证过于简单，没有验证时间如24:78这样的不合法的时间，甚至连8:5这样的时间也认为是不合法的。于是决定把原来的时间 验证修改为完整和正确的正则表达式验证。经过30+分钟的工作，得到了完整的时间验证如下：^((([0-1]?[...</summary><published>2009-06-10T07:02:00Z</published><updated>2009-06-10T07:02:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500493.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500493.html"/><content type="text">今天的开发中用到了一个正则表达式验证时间的地方，原来一直是用javascript进行的验证，copy高人的代码，也没有深究过，今天这个是在别人的 基础上加的，只是原来的时间验证过于简单，没有验证时间如24:78这样的不合法的时间，甚至连8:5这样的时间也认为是不合法的。于是决定把原来的时间 验证修改为完整和正确的正则表达式验证。经过30+分钟的工作，得到了完整的时间验证如下：^((([0-1]?[...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500492.html</id><title type="text">IIS无法启动的解决方法 </title><summary type="text">本人使用的是WindowsXP系统，IIS是默认的，应该是5.1版本吧。最近在做网站的时候，发现网站运行不了，然后打开IIS，发现默认网站停止了，然后怎么也启动不了。于是我就查看world wide web publishing服务，发现该服务没有启动。当我想点击启动的时候，弹出系统错误：无法启动world wide web publishing service服务，错误：127 找不到指定的程序...</summary><published>2009-06-10T07:01:00Z</published><updated>2009-06-10T07:01:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500492.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500492.html"/><content type="text">本人使用的是WindowsXP系统，IIS是默认的，应该是5.1版本吧。最近在做网站的时候，发现网站运行不了，然后打开IIS，发现默认网站停止了，然后怎么也启动不了。于是我就查看world wide web publishing服务，发现该服务没有启动。当我想点击启动的时候，弹出系统错误：无法启动world wide web publishing service服务，错误：127 找不到指定的程序...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500491.html</id><title type="text">FCKEditor的使用及配置方法 </title><summary type="text">1、分别解压后把FCKeditor2.6.4.zip(http://www.fckeditor.net/download)里的fckeditor目录 整个复制到网站中。2、解压FCKeditor.Net_2.6.3.zip(http://www.fckeditor.net/download)包后在FCKeditor.Net_2.6.3\bin\Debug目录里找到FredCK.FCKeditorV...</summary><published>2009-06-10T07:01:00Z</published><updated>2009-06-10T07:01:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500491.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500491.html"/><content type="text">1、分别解压后把FCKeditor2.6.4.zip(http://www.fckeditor.net/download)里的fckeditor目录 整个复制到网站中。2、解压FCKeditor.Net_2.6.3.zip(http://www.fckeditor.net/download)包后在FCKeditor.Net_2.6.3\bin\Debug目录里找到FredCK.FCKeditorV...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500485.html</id><title type="text">Cool MVC： 使用正则式限定路由规则Rount </title><summary type="text">这里列出一些基本的关于MVC路由规则的使用正则表达式的例子。 /*Front*/ //限定id只能是数字， 长度为0～11 routes.MapRoute( "Archive", "{user}/Archive/{id}", new { controller = "Blog", action = "Archive", user = "", id = 0 }, new { id = @"[\d]{0...</summary><published>2009-06-10T06:58:00Z</published><updated>2009-06-10T06:58:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500485.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500485.html"/><content type="text">这里列出一些基本的关于MVC路由规则的使用正则表达式的例子。 /*Front*/ //限定id只能是数字， 长度为0～11 routes.MapRoute( "Archive", "{user}/Archive/{id}", new { controller = "Blog", action = "Archive", user = "", id = 0 }, new { id = @"[\d]{0...</content></entry><entry><id>http://www.cnblogs.com/8user/archive/2009/06/10/1500484.html</id><title type="text">C#中的值类型和引用类型 </title><summary type="text">1、常量：访问修饰符 const 数据类型 常量名=值 使用场合：A、用于在程序中一旦设定就不允许被修改的值 B、用于在程序中被经常引用的值2、枚举：表示一组有限的值，对可能的值进行约束。为了防止用户乱输入，规范用户的输入。 2.1、给枚举成员赋值只能赋整型，不能赋字符串。 2.2、转换：A、枚举转换为整型 如int genderNum=(int)stu.Gender B、枚举转换为字符串 如Co...</summary><published>2009-06-10T06:58:00Z</published><updated>2009-06-10T06:58:00Z</updated><author><name>8user</name><uri>http://www.cnblogs.com/8user/</uri></author><link rel="alternate" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500484.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/8user/archive/2009/06/10/1500484.html"/><content type="text">1、常量：访问修饰符 const 数据类型 常量名=值 使用场合：A、用于在程序中一旦设定就不允许被修改的值 B、用于在程序中被经常引用的值2、枚举：表示一组有限的值，对可能的值进行约束。为了防止用户乱输入，规范用户的输入。 2.1、给枚举成员赋值只能赋整型，不能赋字符串。 2.2、转换：A、枚举转换为整型 如int genderNum=(int)stu.Gender B、枚举转换为字符串 如Co...</content></entry></feed>
