2008年10月14日
摘要: 关 闭 阅读全文
posted @ 2008-10-14 14:47 D.Henry 阅读(521) 评论(0) 推荐(0)
摘要: 首先添加函数: public override void VerifyRenderingInServerForm(Control control) { // Confirms that an HtmlForm control is rendered for } protected void btnExcel_Click(object sender, EventArg... 阅读全文
posted @ 2008-10-14 11:37 D.Henry 阅读(385) 评论(0) 推荐(0)
摘要: 有个时间要在gridview中显示,但是保持着数据库中的是标准时间,很长,而且只需要显示日期,就想要格式化字符串,可是设置了DataFormatString就是不起作用,后来一查,原来要设置"行为"中HtmlEncode = false DataFormatString="{0:格式字符串}" 在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代... 阅读全文
posted @ 2008-10-14 11:32 D.Henry 阅读(495) 评论(0) 推荐(0)