摘要:
1、简单查询:select * from tablename where logtime>='2006/5/11 00:00:00.000' and logtime='"+stime.ToShortDateString()+" 00:00:00.000' and logTime<='"+etime.ToShortDateString()+" 23:59:59.000'" ... 阅读全文
摘要:
当要在DataGrid控件中显示的数据量较大时,我们通常会采用DataGrid自带的分页功能,即AllowPaging="true"。下面转贴别人的一段代码,功能比较齐全。 //DataGridPaging.aspx //DataGridPaging.aspx.csusing System;using System... 阅读全文
摘要:
运用ASP.NET开发Web应用程序过程中,DataGrid是一个非常重要的控件,几乎任何和数据相关的表现都要用到该控件。所以熟练掌握DataGrid控件的应用技巧是每个Web开发人员所必备的基本能力。 DataGrid控件能以表格的方式显示数据源中的数据,并提供了诸如分页、排序以及过滤等一些强大的内置功能,所以它能大大简化Web应用程序的开发过程。同时,开发者还可以... 阅读全文