摘要: In Oracle/PLSQL, the to_char function converts a number or date to a string.The syntax for the to_char function is:to_char( value, [ format_mask ], [ nls_language ] )value can either be a number or date that will be converted to a string.format_mask is optional. This is the format that will be used 阅读全文
posted @ 2011-04-21 14:27 智会超 阅读(1512) 评论(0) 推荐(0) 编辑
摘要: 有时候我们要对时间进行转换,达到不同的显示效果 默认格式为: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-04-21 14:26 智会超 阅读(13595) 评论(0) 推荐(1) 编辑
摘要: HtmlElement 表示一个 HTML 文档中可能存在的任何类型的元素,如:BODY、TABLE 和 FORM 等。此类公开可以在所有元素中找到的最常用属性。大多数元素可以拥有“子元素”:即放置在其下的其他 HTML 元素。使用 CanHaveChildren 属性测试给定元素是否有子级,并使用 Children 集合循环访问这些子级。Parent 属性返回在其中嵌套当前元素的 HtmlElement。 经常需要访问基础元素上未由 HtmlElement 直接公开的属性 (Attribute)、属性 (Property) 和方法,如 IMG 元素上的 SRC 属性 (Attribute) 阅读全文
posted @ 2011-04-21 14:25 智会超 阅读(473) 评论(0) 推荐(0) 编辑
摘要: 项目需要,找了个很炫的样式,O(∩_∩)O哈哈~Here is another gridview theme I have been playing around with this weekend based on a general CNET GameSpot style. The CSS for the gridview has been put into its own file for this series of posts, so that I can change the look of a gridview quickly without changing the class 阅读全文
posted @ 2011-04-21 14:24 智会超 阅读(23122) 评论(9) 推荐(0) 编辑