随笔分类 -  C#

摘要:genimage.ashx genimage.ashx.cs // Copyright (C) 2003 by Greg Ennis// (mailto:greg@ennis.net)//// The contents of this file are subject to the Artistic License (the "License").// You may not use this... 阅读全文
posted @ 2006-07-13 17:21 Kangaroo 阅读(1827) 评论(0) 推荐(0)
摘要:WebForm1 >" oncli... 阅读全文
posted @ 2006-07-11 16:33 Kangaroo 阅读(449) 评论(0) 推荐(0)
摘要:Regex 类包含若干静态方法,使您无需显式创建 Regex 对象即可使用正则表达式。使用静态方法等效于构造 Regex 对象,使用该对象一次然后将其销毁。 Regex 类是不可变(只读)的,并且具有固有的线程安全性。可以在任何线程上创建 Regex 对象,并在线程间共享。 方法:Escape:通过替换为转义码来转义最小的元字符集(\、*、+、?、|、{、[、(、)、^、$、.、# 和空白)。Ge... 阅读全文
posted @ 2006-07-11 10:19 Kangaroo 阅读(293) 评论(0) 推荐(0)
摘要:download.aspx download download.cs using System;using System.IO;using System.Web;using System.Web.UI;namespace ZKSTAT.Common{ ... 阅读全文
posted @ 2006-07-06 11:44 Kangaroo 阅读(572) 评论(0) 推荐(0)
摘要:WebForm2 多上文件上传 ... 阅读全文
posted @ 2006-06-29 14:58 Kangaroo 阅读(519) 评论(0) 推荐(0)
摘要:在包含多个 DataTable 对象的 DataSet 中,可以使用 DataRelation 对象来使一个表与另一个表相关,在多个表之间导航,以及从相关表中返回子行或父行。下面是一个主表和子表关系的示例:Demo.aspx Demo ... 阅读全文
posted @ 2006-06-28 17:31 Kangaroo 阅读(622) 评论(0) 推荐(0)
摘要:显示效果:Directory.aspx Directory Directory.aspx.cs //******************************************************... 阅读全文
posted @ 2006-06-28 16:28 Kangaroo 阅读(2221) 评论(3) 推荐(0)
摘要:数据库脚本: CREATE TABLE [dbo].[Pictures] ( [kFileName] [bigint] IDENTITY (1, 1) NOT NULL , [Picture] [image] NULL , [FileName] [varchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIM... 阅读全文
posted @ 2006-06-27 14:02 Kangaroo 阅读(560) 评论(0) 推荐(0)
摘要:1、由dataset生成public void CreateExcel(DataSet ds,string typeid,string FileName){HttpResponse resp;resp = Page.Response;resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");resp.AppendHeader... 阅读全文
posted @ 2006-06-23 17:23 Kangaroo 阅读(1216) 评论(1) 推荐(0)
摘要:向日历添加自定义内容 阅读全文
posted @ 2006-06-02 15:48 Kangaroo 阅读(1115) 评论(1) 推荐(0)