摘要: 利用存储过程来实现分页性能比较 1.生成表 CREATE TABLE [T_User] ( [Id] [bigint] IDENTITY (1, 1) NOT NULL , [Name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NOT NULL , [Birthday] ... 阅读全文
posted @ 2008-07-30 23:17 angushine 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 看到一个好东东,Lightbox JS,大家都说很好,有时间就研究一下 阅读全文
posted @ 2008-07-24 18:27 angushine 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 注意document.createElement("FORM")来创建节点,在IE和Firefox下都可以 IE有3种方式都可以创建一个元素: 1 document.createElement(""... 阅读全文
posted @ 2008-07-20 22:43 angushine 阅读(5635) 评论(0) 推荐(0) 编辑
摘要: 常规日期或 G 显示日期和/或时间。对于实数,显示日期和时间,例如 4/3/93 05:34 PM。如果没有小数部分,则只显示日期,例如 4/3/93。如果没有整数部分,则只显示时间,例如 05:34 PM。日期显示由系统的 LocaleID 值确定。 长日期或 D 根据区域设置的长日期格式显示日期。 中长日期 使用适合于宿主应用程序... 阅读全文
posted @ 2008-07-18 23:27 angushine 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 用sql生成数据库集,绑定在 一个datagrid上,然后这样: public void ToExcel(System.Web.UI.Control ctl) { // HttpContext.Current.Response.Charset ="GB2312"; HttpContext.Current.Response.Charset =""; HttpCo... 阅读全文
posted @ 2008-07-18 23:17 angushine 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 操作XML using System; using System.IO; using System.Xml; using System.Text; public class xml { public static void Main(String [] Args) { try { string fileName="book... 阅读全文
posted @ 2008-07-18 23:12 angushine 阅读(111) 评论(0) 推荐(0) 编辑
摘要: Demo.cs using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using... 阅读全文
posted @ 2008-07-06 21:15 angushine 阅读(280) 评论(0) 推荐(0) 编辑
摘要: TableAttribute.cs using System; using System.Collections.Generic; using System.Text; namespace Common { [AttributeUsage(AttributeTargets.Class)] public class TableAttribute : Attribute { ... 阅读全文
posted @ 2008-07-06 21:04 angushine 阅读(168) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.IO; using System.IO.Compression; namespace Framework { public class CompressionHelper { public Compress... 阅读全文
posted @ 2008-07-01 22:07 angushine 阅读(200) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Util { public class WriteFile { public static void WriteText(string fileName, string cont... 阅读全文
posted @ 2008-07-01 22:06 angushine 阅读(166) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Text.RegularExpressions; namespace Util { public class HtmlText { private static string html2TextPattern = @"(?)|(?)|(?)" + @"|(?]+>... 阅读全文
posted @ 2008-07-01 21:54 angushine 阅读(467) 评论(1) 推荐(0) 编辑
摘要: 使用WebRequest下载文件 using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; namespace Util { public class Down { private void File(string na... 阅读全文
posted @ 2008-07-01 21:49 angushine 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 常用方法: using System; using System.Text.RegularExpressions; using System.Collections.ObjectModel; namespace Util { public class CType { /// /// 判断是否是整数 /// ///... 阅读全文
posted @ 2008-07-01 21:46 angushine 阅读(208) 评论(0) 推荐(0) 编辑
摘要: TableAttribute.cs using System; using System.Collections.Generic; using System.Text; namespace Common { [AttributeUsage(AttributeTargets.Class)] public class TableAttribute : Attribute { ... 阅读全文
posted @ 2008-07-01 21:39 angushine 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 由于在上个版本中CButton无法支持验证控件,故此改变为继承Button,一切问题迎刃而解,代码如下 /* Beads - UK wholesale beads,buttons and jewelry making supplies-eezyco.co.uk Next, Please Confirm Your Cart */ using System; usin... 阅读全文
posted @ 2008-06-21 11:16 angushine 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 通过继承WebControl和IPostBackEventHandler,封装一个自定义的按钮。 /* Beads - UK wholesale beads,buttons and jewelry making supplies-eezyco.co.uk Next, Please Confirm Your Cart */ using System; using ... 阅读全文
posted @ 2008-06-20 20:50 angushine 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 聚合:指的是整体与部分的关系。通常在定义一个整体类后,再去分析这个整体类的组成结构。从而找出一些组成类,该整体类和组成类之间就形成了聚合关系。例如一个航母编队包括海空母舰、驱护舰艇、舰载飞机及核动力攻击潜艇等。需求描述中“包含”、“组成”、“分为…部分”等词常意味着聚合关系。 组合:也表示类之间整体和部分的关系,但是组合关系中部分和整体具有统一的生存期。一旦整体对象不存在,部分对象也将不存在。部... 阅读全文
posted @ 2008-06-16 14:23 angushine 阅读(3540) 评论(1) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; namespace Win.DesignPatterns.SimpleFactory { public interface Fruit { //生长 void grow(); //收获 ... 阅读全文
posted @ 2008-06-13 16:34 angushine 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 首先下载如下文件 fcgisetup32.msi IIS中可以使用PHP的连接文件,在iis.net上可以下载到 php-5.2.6-Win32.zip PHP的运行文件, 在php.net上可以下载到 phpMyAdmin-v2.116.rar 如果需要使用PHP管理MYSQL,可以下载这个开源的PHP管理MYSQL的环境,在sourceforge.net上可以下载到 首先安装fc... 阅读全文
posted @ 2008-06-12 17:49 angushine 阅读(1027) 评论(0) 推荐(0) 编辑
摘要: 写入Cookie private void SetCookie(string domain) { HttpCookie cookie = new HttpCookie("token"); if (!string.IsNullOrEmpty(domain)) cookie.Domain ... 阅读全文
posted @ 2008-05-27 09:26 angushine 阅读(270) 评论(0) 推荐(0) 编辑