ASP.NET程序中常用代码汇总(一)[7]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

: #000000">{
e.Item.Attributes.Add("onmouseover","this.style.backgroundColor=’#99cc00’;
   this.style.color=’buttontext’;this.style.cursor=default’;");
e.Item.Attributes.Add("onmouseout","this.style.backgroundColor=’’;this.style.color=’’;");
}

8.关于日期格式

日期格式设定
DataFormatString
="{0:yyyy-MM-dd}"
  
//我觉得应该在itembound事件中
e.items.cell["你的列"].text=DateTime.Parse(e.items.cell["你的列"].text.ToString("yyyy-MM-dd"))

本文关键:ASP.NET程序中常用代码汇总(一)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top