上一页 1 2 3 4 5 6 ··· 14 下一页

2009年6月12日

英语的序数词简写

摘要: 序数词简写不一样,一直以为都是数字后加 th 。The 22nd Tokyo International Film FestivalThe 14th Pusan International Film Festival原来不光是 th,还有加 nd 的,重记一下序数词。第一first1st第二second2nd第三third3rd第四fourth4th第五fifth5th第六sixth6th第七seventh7th第八eighth8th第九ninth9th第十tenth10th第十一eleventh11th第十二twelfth12th第十三thirteenth13th第十四fourteenth1 阅读全文

posted @ 2009-06-12 09:11 小灰熊 阅读(2390) 评论(0) 推荐(0) 编辑

2009年6月8日

解决Wordpress安装时出现Warning: Cannot modify header information

摘要: 解决Wordpress安装时出现Warning: Cannot modify header informationhttp://www.myaisin.cn/post/install-wordpress.html刚在xampp下调试安装WordPress,到了打开http://localhost/wordpress/wp-admin/install.php进行WordPress安装时,顶部老时提示:“Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\ht 阅读全文

posted @ 2009-06-08 10:06 小灰熊 阅读(505) 评论(0) 推荐(0) 编辑

2009年6月2日

时间管理

摘要: 时间管理是取得成功的一个重要的保障,但很多人由于缺少这方面的意识,从而浪费了大量的时间。李践指出,人们浪费时间的原因主要分成主观和客观两大类:其中主观原因有缺乏明确的目标,拖延,缺乏优先顺序,想做的事情太多,做事有头无尾,缺乏条理和整洁,不懂授权,不会拒绝别人的请求,仓促决策,行动缓慢,懒惰和心态消极。客观原因有上级领导浪费时间(开会、电话、不懂授权),工作系统浪费时间(访客 、官样文章、员工离职... 阅读全文

posted @ 2009-06-02 15:07 小灰熊 阅读(241) 评论(0) 推荐(0) 编辑

2009年5月20日

获取指定月份的天数 [c#,js]

摘要: c#1:获取指定月份的天数intDays=DateTime.DaysInMonth(Year,Month);//Year指定的年份,Month指定的月份2:当前月份的天数int idate=System.DateTime.DaysInMonth(System.DateTime.Now.Year,System.DateTime.Now.Month); js//方法一functionDayNumOfM... 阅读全文

posted @ 2009-05-20 09:39 小灰熊 阅读(799) 评论(0) 推荐(0) 编辑

2009年5月8日

unable to retrieve applicationSettings information (object name,property name) for connection 'XXXXXX'

摘要: "Unable to retrieve ApplicationSettings information"这个错误是在修改之前已经生成好的强类型数据集时发生的,当选定数据配置器进行重新定义时出错了:数据连接字符串是存在项目的配置文件里的:从数据适配器的属性里也能看到同样的错误:后来试了各种方法,包括重新创建并使用一个新的连接串,甚至都把数据集删了再重新创建一个,都还是得到相同的错误:( Google... 阅读全文

posted @ 2009-05-08 13:56 小灰熊 阅读(836) 评论(0) 推荐(0) 编辑

FindControl后台进行DIV转换

摘要: 使用 HtmlGenericControl 强制转换即可前台: <div id= "Details " > </div> 后台: if (((div)e.Row.FindControl( "Details ")) != null) ======================> 这可以找到吗?不可能 <div> 不是服务器控件,后台怎么找得到? //前台 <... 阅读全文

posted @ 2009-05-08 10:36 小灰熊 阅读(485) 评论(0) 推荐(0) 编辑

2009年4月2日

[转]DataTable.Compute的功能

摘要: DataTable.Compute的功能1:聚合函数”Sum()”2:自由计算表达式“20*30+1”3:bool表达式“1=2”4:IFF逻辑表达式” IIF(20>1000, 0, 1)” //还支持IsNull,Trim,SubString等一个小应用:让DataTable模拟Excel的Formula功能。Excel中的Formula功能强大,如果能让DataTable有类似的功能就好了。大部分事件DataTable只是用作数据载体,其实很少用它做计算。DataTable提供的函数Compute就提供了功能强大的计算功能。Compute函数的参数就两个:Expression,和F 阅读全文

posted @ 2009-04-02 17:22 小灰熊 阅读(460) 评论(0) 推荐(0) 编辑

2009年3月25日

GridView中数字列格式汇总

摘要: 利用BoundField.DataFormatString 属性,实现起来比较简单,不过要注意的是,必须和HtmlEncode="False"联合起来用,否则DataFormatString 不起作用例1:<asp:BoundField DataField="Total" HeaderText="Total" DataFormatString="{0:n2}"HtmlEncode="False" />例2: 使用模版<asp:textbox id="TextBoxPr 阅读全文

posted @ 2009-03-25 16:51 小灰熊 阅读(466) 评论(0) 推荐(0) 编辑

2009年3月24日

[转]在C#里,如何执行cmd里的常用dos命令

摘要: using System;using System.Diagnostics;namespace Tipo.Tools.Utility{/// <summary>/// 常用Dos命令操作/// </summary>public class DosCommand{private Process process=null;private string _errmsg;public DosCommand(){process = new Process();process.StartInfo.FileName = "cmd.exe";process.Star 阅读全文

posted @ 2009-03-24 14:09 小灰熊 阅读(395) 评论(0) 推荐(0) 编辑

[转]C#中使用TimeSpan计算两个时间的差值

摘要: DateTime ts1 = DateTime.Parse("2008-6-1");DateTime ts2 = DateTime.Parse("2008-6-5");TimeSpan ts = ts1.Subtract(ts2).Duration();//Response.Write(ts.Days.ToString()+"天"+ ts.Hours.ToString()+"小时"// + ts.Minutes.ToString()+"分钟"+ ts.Seconds.ToString()+&qu 阅读全文

posted @ 2009-03-24 14:08 小灰熊 阅读(528) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 14 下一页

导航