做最好的自己~~

Be My Personal Best!

导航

2008年6月12日 #

生活点滴总结

摘要: 1。。。。一般日期显示为: 2004-8-11 19:44:28 在前台页面显示出来我只想要:2004-8-11   可以此名绑定:<%# DataBinder.Eval(Container.DataItem,"字段名","{0:yyyy-M-d}")%> 如果你想只显示年与月,则可以: <%# DataBinder.Eval(Container.DataItem,"字段名","... 阅读全文

posted @ 2008-06-12 22:47 阿万 阅读(695) 评论(2) 推荐(0) 编辑

遍历DataList中每行的简单方法

摘要: 我们常常用的方法是: for (int i = 0; i < this.DataList1.Items.Count; i++) { string value = ((Label)this.DataList1.Items[i].FindControl("price")).Text; double price = Convert.To... 阅读全文

posted @ 2008-06-12 22:06 阿万 阅读(2162) 评论(4) 推荐(0) 编辑