它山之石可以攻玉

键盘上的生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年3月14日

摘要: 不错的展示效果: http://www.blueidea.com/articleimg/2006/08/3912/thickbox.html 下载 阅读全文

posted @ 2007-03-14 11:55 陈达辉 阅读(228) 评论(0) 推荐(0) 编辑

2007年3月13日

摘要: 在ASP编程中使用数组 数组的定义Dim MyArrayMyArray = Array(1,5,123,12,98)可扩展数组Dim MyArray()for i = 0 to 10ReDim Preserve MyArray(i)MyArray(i)=inext将一个字符串分割并返回分割结果的数组Dim MyArrayMyArray = Split(tempcnt,chr(13)&chr(10)... 阅读全文

posted @ 2007-03-13 16:11 陈达辉 阅读(3577) 评论(0) 推荐(0) 编辑

摘要: 全选与不全选的切换 ps:(当然若那个全选框是其它的控件比如是一个按钮,或者一个链接什么的话,那复选框里的 checkItem 点击事件可以去掉,以免出错) 阅读全文

posted @ 2007-03-13 13:15 陈达辉 阅读(217) 评论(0) 推荐(0) 编辑

摘要: 删除文件 iFileName 文件名 iPath 文件路径 '有关文件操作 'Power by huang_ke@hotmail.com '删除文件 iFileName 文件名 iPath 文件路径 sub DelFile(iFileName,iPath) realpath = Server.MapPath(iPath) & "\" & iFileName Set fso = Server.CreateObject("Scripting.FileSystemObject") fso.DeleteFile(realpath) Set fso = nothing end sub % 阅读全文

posted @ 2007-03-13 11:58 陈达辉 阅读(477) 评论(0) 推荐(0) 编辑

2007年3月12日

摘要: 1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Second; 1.8 取当前毫秒 int 毫秒=currentTime.Millisecond; (变量可用中文) 阅读全文

posted @ 2007-03-12 13:47 陈达辉 阅读(2019) 评论(4) 推荐(0) 编辑

摘要: 分页:1 THEN IF cint(cur) = 1 then Response.write (" [下一页] ") Response.write (" [末 页] ") ELSEIF cint(cur) = cint(rs.PageCount) THEN Response.write (" [首 页] ") Response.write (" [上一页] ") ELSE Resp... 阅读全文

posted @ 2007-03-12 13:39 陈达辉 阅读(437) 评论(0) 推荐(0) 编辑

摘要: csc /t:library /out: d:\*.cs 装了VS的话 可以直接编译 如果没有VS用下面的办法 搜索csc.exe 打开cmd 转到csc.exe的文件夹 运行 csc /t:library N:\NET\cs\*.cs N:\NET\cs\*.cs 是你的cs文件的位置 阅读全文

posted @ 2007-03-12 13:35 陈达辉 阅读(221) 评论(0) 推荐(0) 编辑

摘要: 阅读全文

posted @ 2007-03-12 13:32 陈达辉 阅读(631) 评论(2) 推荐(0) 编辑

摘要: 1.与的区别: 答:是在程序执行时调用,是在DataBind()方法之后被调用 2.控件接收哪些类型数据? 答:接收Bind的控件,一般有DropDownList,DataList,DataGrid,ListBox这些集合性质的控件,而被捆绑 的主要是ArrayList(数组),Hashtable(哈稀表),DataView(数据视图),DataReader这四个,以后我们就可以 对号入座,不会出现DataTable被捆绑的错误了:) 阅读全文

posted @ 2007-03-12 13:29 陈达辉 阅读(1628) 评论(1) 推荐(0) 编辑

摘要: set conn=server.CreateObject("adodb.connection") conn.Open "PROVIDER=SQLOLEDB;DATA SOURCE=*.*.*.*;UID=;PWD=;DATABASE=*" % 阅读全文

posted @ 2007-03-12 13:26 陈达辉 阅读(225) 评论(0) 推荐(0) 编辑