上一页 1 ··· 3 4 5 6 7
摘要: Reqeust["keyname"] 的读取顺序 ,寓意深远,回味无穷。publicstringthis[stringkey]{get{stringstr=this.QueryString[key];if(str!=null){returnstr;}str=this.Form[key];if(str!=null){returnstr;}HttpCookiecookie=this.Cookies[key];if(cookie!=null){returncookie.Value;}str=this.ServerVariables[key];if(str!=null){retur 阅读全文
posted @ 2012-08-24 14:52 哥,我还要 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 抽奖类:/// <summary> /// 抽奖类 /// </summary> public class Lottery<T> { /// <summary> /// 抽奖次数 /// </summary> public int LotteryNumber { get; set; } /// <summary> /// 抽中事件 /// </summary> public event EventHa 阅读全文
posted @ 2011-02-11 17:54 哥,我还要 阅读(534) 评论(0) 推荐(0) 编辑
摘要: bat代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--@echo"删除指定5天前备份文件"@setdatetime=%date%@setyy=%datetime:~0,4%@setmm=%datetime:~5,2%@setdd=%datetime:~8,2%::md%yy%%mm%%dd%::@echowscript.echodateadd("d",-1,date)vbs.vbs@FOR/F%%iin('c:\windows\system3 阅读全文
posted @ 2011-01-19 10:04 哥,我还要 阅读(910) 评论(0) 推荐(0) 编辑
摘要: 更新MYSQL生成日历表,支持跨年代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--CREATEDEFINER='root'@'localhost'PROCEDURE`proc_ym`(INsdateDATE,INedateDATE)NOTDETERMINISTICCONTAINSSQLSQLSECURITYDEFINERCOMMENT''begin#1.变量声明declaresourcedatedate;#开始时间declaretargetda 阅读全文
posted @ 2010-12-31 09:57 哥,我还要 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 最近在做一个报表,数据库是用MYSQL,于是需要个日历表,通常在做报表的时候会经常使用到。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--CREATEDEFINER='root'@'localhost'PROCEDURE`create_tmp_yearmonth_tb`()NOTDETERMINISTICCONTAINSSQLSQLSECURITYDEFINERCOMMENT''BEGIN#变量声明declaresourcedatedate;d 阅读全文
posted @ 2010-12-29 17:46 哥,我还要 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;using... 阅读全文
posted @ 2010-11-22 10:49 哥,我还要 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 引子:  其它成员做了一个棵树,treenode 的 Value值是这样一个串"id=1&name=张三&sex=男",按普通做法的话,进行这个字符串拆分,用substring 和 split 两个方法就可以做到了.但是看到这样一个串我觉得和URL的QueryString是一样的.我就想用Request["id"]这样来得到这个字符串中id对应的"1"这个值.我一开始觉得HttpR... 阅读全文
posted @ 2010-03-19 17:46 哥,我还要 阅读(715) 评论(1) 推荐(1) 编辑
摘要: Asp.net Treeview 客户端选中效果实现最近将asp.net默认自带的treeview控件,做成一个导航树,导向其它的几个站点,所以这样写TreeNode tn = new TreeNode();tn.Text = “新浪网”;tn.NavigateUrl = "http://www.sina.com.cn";tn.Target = "mainFr";但是发现一... 阅读全文
posted @ 2010-02-02 12:22 哥,我还要 阅读(2209) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7