【转】Eclipse 快捷键 18 June 2010 Jeff 沙滩脚印 原文地址:http://baike.baidu.com/view/2287016.htm 编辑 作用域 功能 快捷键 全局 查找并替换 Ctrl+F ... [More]
获取下周一的日期的算法 13 June 2010 Jeff 沙滩脚印 设计一个算法,以任意一天为基准向后数,得到第一个星期一的日期。即, 输入 2010-6-14 星期一 2010-6-15 星期二 2010-6-16 星期三 2010-6-17 星期四 2010-6-18 星期五 ... [More]
给GridView添加多列排序功能 12 June 2010 Jeff 沙滩脚印 如果重复单击GridView 的列标题,排序顺序就会在升序和降序之间来回切换。GridView的Sort方法还可以接受多个SortExpression,进行多列排序。这需要在后台的代码文件中添加如下代码: protected void GridView1_Sorting(object sender, GridViewSortEventArgs e) { strin... [More]
【转】两个SQL Server 2008密钥Key 10 June 2010 Jeff 沙滩脚印 原文地址:http://www.zjsybbs.com/a/shujukujiaocheng/Mssqlshujukujiaocheng/2010/0401/353.html 在安装sql 2008时,如果没有集成KEY的话,需要KEY,要不然只能使用180天。 下面提供几个key给大家,仅供学习,请不要用作其他用途。(KEY收集于网络) Developer: PTTFM-X467G... [More]
【转】Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server. 08 June 2010 Jeff 沙滩脚印 我在做将GridView导出为Excel的功能时,碰到这个错误: Control 'GridView1' of type 'GridView' must be placed inside a form tag with runat=server. 我百思不得其解,因为我的GridView是放在一个有runat="server"的form标签中的呀! 后来找到解决办法,汗!看来微软做的软件,也会有一... [More]
Movie 是 Moving Picture 的口语体 04 June 2010 Jeff 沙滩脚印 Movie 是 Moving Picture 的口语体,哇,太熟悉了这个词,还以为它是自古就有的单词。
在网页上模仿控制台输出 04 June 2010 Jeff 沙滩脚印 在编程练习中,用得最多的语句应该是控制台输出语句,如Java中的System.out.println(),C中的printf(),C#中的Console.WriteLine()等等。 在Web编程中,我们没有控制台,不过也很想在练习过程中,像在控制台输出一些信息一样,在网页上输出一些信息,即把网页当成是控制台。 在ASP.NET中,我的方法是,给Page对象一个字符串如Information来存储... [More]
【转】令人不解的 roles 属性 03 June 2010 Jeff 沙滩脚印 以下文章转载自:http://blog.joycode.com 纯技术视点 PTV-Pure Technology View 原文地址:http://blog.joycode.com/moslem/archive/2006/09/19/83842.joy 在 ASP.NET 2.0 的 Web.sitemap 文件中,siteMapNode 有个属性 r... [More]
C# 中的 StringTokenizer 类 01 June 2010 Jeff 沙滩脚印 在Java中,有一个StringTokenizer类,对于分析单词非常有用。 C# 中,似乎没有系统自带的StringTokenizer类,不过,可以自己写一个。 网上搜索到一个非常专业的代码。如下: using System; using System.Collections; using System.Text; /// <summary> /// StringTokenize... [More]
You have specified that your delete command compares all values on SqlDataSource 'SqlDataSource_Holiday', but the dictionary passed in for values is empty. Pass in a valid dictionary for delete or change your mode to OverwriteChanges. 31 May 2010 Jeff 沙滩脚印 今天使用ListView控件连接了数据库,在数据库配置中,使用了乐观并发控制。 在页面上,可以进行添加、修改,但是在删除行时,却出现如下错误: You have specified that your delete command compares all values on SqlDataSource 'SqlDataSource_Holiday', but the diction... [More]