上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页

2005年10月21日

IComparable 接口的实现

摘要: using System;using System.Collections;namespace ResTest{public enum CompareDirection{ASC,DESC}/// <summary>/// CompareObj 的摘要说明。/// </summary>public class CompareObj:System.IComparable{private static int currentUID=1;public static int CurrentUID{get{ return CompareObj.currentUID++;}}priv 阅读全文

posted @ 2005-10-21 11:11 老代哥哥 阅读(259) 评论(0) 推荐(0) 编辑

小李菜刀:实现ICompare接口的通用对象比较类

摘要: using System;using System.Collections ;using System.Reflection ;namespace ResTest{/// <summary> /// 通用对象比较类,一般用于对一个对象数组按属性排序或查询 /// </summary> public class ObjectCompare : System.Collections.IComparer { SortEntry[] _sortEntrys; /**//// <summary> /// 构造函数,制定排序方法 /// </summary> 阅读全文

posted @ 2005-10-21 10:30 老代哥哥 阅读(254) 评论(0) 推荐(0) 编辑

2005年10月20日

利用xmlhttp取数据

摘要: <!--Page language="c#" Codebehind="WebForm5.aspx.cs" AutoEventWireup="false" Inherits="Cry18.WebForm5"-->&nbsp;<script language="javascript" type="text/javascript">function getUserLst(){var xmlhttp = new ActiveXObject(" 阅读全文

posted @ 2005-10-20 12:25 老代哥哥 阅读(143) 评论(0) 推荐(0) 编辑

从资源文件中取图片

摘要: //dll文件其中有dhzTc.resource文件public class ImgFrmRes{public ImgFrmRes(){//// TODO: 在此处添加构造函数逻辑//} public static System.Drawing.Image GetSrc(string name){System.Resources.ResourceManager rm=new ResourceManager("ImgFrmRes.dhzTc",System.Reflection.Assembly.GetExecutingAssembly());return rm.GetObj 阅读全文

posted @ 2005-10-20 09:25 老代哥哥 阅读(227) 评论(0) 推荐(0) 编辑

2005年10月18日

动易首页调用最新文章图片向上滚动方法(ZT)

摘要: <DIV id=demo><div id=demo1> <IMG SRC=o.jpg><BR><IMG src=1.jpg><BR></div><div id=demo2></div></div></DIV> <script> var speed=15 demo2.innerHTML=demo1.innerHTML function Marquee3(){ if(demo2.offsetTop-demo.scrollTop<=0) demo.sc 阅读全文

posted @ 2005-10-18 17:29 老代哥哥 阅读(192) 评论(0) 推荐(0) 编辑

asp.net中的存储过程的动态配置2

摘要: using System;using System.Xml ;using System.Xml.Serialization ;using System.Xml.XPath ;using System.Reflection;namespace WebApplication2.Xml{/// <summary>/// Procedure 的摘要说明。/// </summary>public class Procedure{public Procedure(){//// TODO: 在此处添加构造函数逻辑//}private Command[] _Commands;[XmlA 阅读全文

posted @ 2005-10-18 09:31 老代哥哥 阅读(128) 评论(0) 推荐(0) 编辑

2005年10月17日

图片缩放

摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;namespace Cry18{/// <summary>/// WebForm3 的摘要说明。/// </ 阅读全文

posted @ 2005-10-17 16:39 老代哥哥 阅读(135) 评论(0) 推荐(0) 编辑

取存储过程的信息

摘要: SELECT (case when a.colorder=1 then d.name else '' end) N'TabName',(case when a.colorder=1 then d.id else '' end) N'TabId', a.colorder N'keyno', a.name N'colname', b.name N'DbType', a.length N'Size', (case a.status when 72 then 'Out 阅读全文

posted @ 2005-10-17 11:28 老代哥哥 阅读(113) 评论(0) 推荐(0) 编辑

存储过程动态配置

摘要: using System;using System.Text.RegularExpressions;using System.Web;using System.Reflection;using System.Configuration;using System.Xml;using System.Xml.Serialization;using System.Xml.XPath;namespace WebApplication2{/// <summary>/// ProcedureConfig 的摘要说明。/// </summary>public class Procedu 阅读全文

posted @ 2005-10-17 11:25 老代哥哥 阅读(194) 评论(0) 推荐(0) 编辑

2005年10月14日

Url重写问题????

摘要: 这些代码是从.Text Blog Engeer中修改过来的仅备自用的,using System;using System.Web ;using System.Web.SessionState;using System.Collections.Specialized;namespace DHZUR{public class DHZUrlHandlerAspx : IHttpHandler{public void ProcessRequest(HttpContext ctx){HttpResponse Response=ctx.Response;Response.Write("This 阅读全文

posted @ 2005-10-14 12:44 老代哥哥 阅读(239) 评论(0) 推荐(0) 编辑

上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页

导航