摘要: C# 抽象方法Abstract 和 虚方法Virtual 抽象方法(abstract )相当于接口,根本就没有实现,只等着子类来重新。 虚方法(Virtual)好歹完成了点功能。 1:abstract 方法只能在抽象类中声明,而Virtual方法都可以。 2:abstract 方法必须在派生类中重写,而Virtual方法可以重写也可以不重写 3:abstract 方法不能声明方法实体, ... 阅读全文
posted @ 2009-03-25 17:34 litao6664 阅读(166) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Reflection; /// ///Linq To DataTable Type /// public static class DataSetLinqOp... 阅读全文
posted @ 2009-03-19 17:01 litao6664 阅读(2820) 评论(3) 推荐(1) 编辑
摘要: var Query = dtNewPO.AsEnumerable().AsQueryable().FullOuterJoin(dtOldPO.AsEnumerable().AsQueryable(), p => p.Field("MaterielID") + p.Field("SalesOrderDetailID"), ... 阅读全文
posted @ 2009-03-02 09:38 litao6664 阅读(1587) 评论(0) 推荐(0) 编辑
摘要: #region Parser /// /// Parser Analysis. /// /// [WebMethod] public bool Parser() { #region Initialization Variables string FileName, strXmlTemplateFolder... 阅读全文
posted @ 2009-02-16 17:13 litao6664 阅读(320) 评论(0) 推荐(0) 编辑
摘要: public string ChkSpelling(string word) { System.Type wordType = System.Type.GetTypeFromProgID("Word.Application"); object wd = System.Activator.CreateInstance(wordType); St... 阅读全文
posted @ 2009-02-16 17:12 litao6664 阅读(1043) 评论(1) 推荐(0) 编辑
摘要: { Int32 PageSize = 0; Int32 PageCount, RecCount, CurrentPage, Pages; bool isSorting = false; //True if the user is sorting a column int sortColumn; //The column number the user is ... 阅读全文
posted @ 2009-02-16 17:10 litao6664 阅读(396) 评论(0) 推荐(0) 编辑
摘要: insert into failurelog (ErrorMessage,[type],date) select ErrorMessage,[type],date from failurelog 阅读全文
posted @ 2009-02-16 17:09 litao6664 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.简单数据绑定定 2.数据源控件 控件名 控件描述 SqlDataSource 一切支持SQL语句的数据源控件 AccessDataSource Access数据源控件 XmlDataSource ... 阅读全文
posted @ 2009-02-16 17:05 litao6664 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Default.aspx Three Join Union Form WeiZhi ... 阅读全文
posted @ 2009-02-16 17:04 litao6664 阅读(570) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE northwind_OrdersPaged ( @PageIndex int, @PageSize int ) AS BEGIN DECLARE @PageLowerBound int DECLARE @PageUpperBound int DECLARE @RowsToReturn int -- First set the rowcount... 阅读全文
posted @ 2009-02-16 17:03 litao6664 阅读(119) 评论(0) 推荐(0) 编辑