摘要: 有时候我们要对时间进行转换,达到不同的显示效果 默认格式为:2009-6-24 14:33:34 如果要换成成200906,06-2009,2009-6-24或更多的该怎么办呢 我们要用到:DateTime.ToString的方法(String, IFormatProvider) using System; using System.Globalization; String format="D"; DateTime date=DataTime,Now; Response.Write(date.ToString(format, DateTimeFormatInfo.Inva 阅读全文
posted @ 2011-10-26 16:51 Vic Huang 阅读(4705) 评论(1) 推荐(1) 编辑
摘要: string str="123abc456";int i=3;1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符: str=str.Remove(0,i); // or str=str.Substring(i); 3 从右边开始取i个字符: str=str.Substring(str.Length-i); // or str=str.Remove(0,str.Length-i);4 从右边开始去掉i个字符: str=str.Substring(0,s 阅读全文
posted @ 2011-10-26 16:33 Vic Huang 阅读(20439) 评论(0) 推荐(0) 编辑
摘要: 关于 document.getElementById ,是这样的:如: document.getElementById("userA")表示的意思是:获取 ID 为 :userA的对象详情可参考:http://www.cnblogs.com/netccb/articles/1288217.htmlstyle.visibility 这是javascript控制页面控件是否显示的一个属性如果是:style.visibility = "hidden";//表示隐藏这个控件style.visibility = "visible";//表示显示 阅读全文
posted @ 2011-10-26 16:32 Vic Huang 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Server 2005下载地址:http://222.132.81.146/rj/cs_sql_2005_dev_all_dvd.rarServer 2008下载地址:http://download.microsoft.com/download/4/C/4/4C402E48-0223-4D3B-8574-2C259500D2E4/SQLFULL_X86_CHS.EXEsql2008检查是否需要挂起计算机重新启动。挂起重新启动会导致安装程序失败是否需要挂起计算机重新启动。挂起重新启动会导致安装程序失败前一段时间想装一下sqlserver,但是一直装不上。搞得我很郁闷,我重装了一下系统。但是还是没 阅读全文
posted @ 2011-10-26 16:19 Vic Huang 阅读(4187) 评论(0) 推荐(0) 编辑