摘要: DataSet ds1=GetDataSet1();DataSet ds2=GetDataSet2();ds1.Merge(ds2,true,MissingSchemaAction.AddWithKey);return ds1;//ds1就是合并后的DataSet了 阅读全文
posted @ 2006-09-08 16:26 Titans 阅读(2262) 评论(0) 推荐(0) 编辑
摘要: 一、验证类1、数字验证内 1.1 整数 1.2 大于0的整数 (用于传来的ID的验证) 1.3 负整数的验证 1.4 整数不能大于iMax 1.5 整数不能小于iMin2、时间类 2.1 短时间,形如 (13:04:06) 2.2 短日期,形如 (2003-12-05) 2.3 长时间,形如 (2003-12-05 13:04:06) 2.4 只有年和月。形如(2003-05,或者2003-5) ... 阅读全文
posted @ 2006-09-08 16:24 Titans 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 假设web application的编码规则是utf-8,那么js文件中如果有中文就会出现乱码(有可能是其它的页面不正常的情况) 解决这个问题请在引用javascript的地方加上charset="gb2312"或者charset="big5"例如:<script type="text/javascript" language="javascript" src="scripts/funct... 阅读全文
posted @ 2006-09-08 16:22 Titans 阅读(228) 评论(0) 推荐(0) 编辑
摘要: VS.NET 2003 快捷键/***********************************************************/author:Kevindate:2005.06.21Memo:不段完善中/***********************************************************/窗口切换======================... 阅读全文
posted @ 2006-09-08 16:20 Titans 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 一个简单的复合控件,开始忘了继承接口INamingContainer,结果子控件(TextBox)不能保存视图状态,每次页面提交后TextBox的内容都会丢失,后来继承接口INamingContainer即OK了。 对控件开发来说这是一个重要的接口,他还有一个重要的作用就是能接控件层次结构创建子控件的ID 阅读全文
posted @ 2006-09-08 16:19 Titans 阅读(302) 评论(0) 推荐(0) 编辑
摘要: C#中没有redim函数,但你可以通过Array对象实现redim函数。 以下是Microsoft .Net框架程序设计(修订版)中实现 redim函数的方法: public static Array Redim(Array origArray,Int32 desiredsize) { //确定每个元素类型 Type t=origA... 阅读全文
posted @ 2006-09-08 16:17 Titans 阅读(620) 评论(0) 推荐(0) 编辑
摘要: ' Text=''>生成xxxx.aspx?arg1=aaaa&UserID=name这样子的,必须 阅读全文
posted @ 2006-09-08 16:16 Titans 阅读(616) 评论(1) 推荐(0) 编辑
摘要: Sub 注解() DTE.ActiveDocument.Selection.Text = "//************************** " DTE.ActiveDocument.Selection.NewLine() DTE.ActiveDocument.Selection.Text = "//* 名 称: " DT... 阅读全文
posted @ 2006-09-08 16:15 Titans 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 先来建两个测试页面:test1.aspx和test2.aspx,内容如下:test1.aspx 页面: Test1 请输入您的姓名: test1.aspx.cs 文件内容:using System;usin... 阅读全文
posted @ 2006-09-08 16:13 Titans 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Web; 7 using System.Web.SessionState; 8 using System.W... 阅读全文
posted @ 2006-09-08 16:10 Titans 阅读(147) 评论(0) 推荐(0) 编辑
摘要: People have been passionate about roses since the beginning of time. In fact, it is said that the floors of Cleopatra1’s palace were carpeted with delicate rose petals, and that the wise and knowing... 阅读全文
posted @ 2006-09-08 16:04 Titans 阅读(257) 评论(0) 推荐(0) 编辑