摘要: 方法1:初始化htmlTable中的数据,table中有两行表头,其页面写法是:<table id="MyTable" runat="server"> <tr></tr> <tr></tr></table> private void initTable() { System.Data.DataTable dt = GetTonKilo();// int j = 0; foreach(DataRow dr in dt.Rows) { HtmlTableRow tr = new Html 阅读全文
posted @ 2013-01-09 16:03 曹玉志 阅读(366) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript"> function getDays(strDateStart,strDateEnd){ var strSeparator = "-"; //日期分隔符 var oDate1; var oDate2; var iDays; oDate1= strDateStart.split(strSeparator); oDate2= strDateEnd.split(strSeparator); var strDateS = new Date(oDate1[0], oDate1[1]-1, oD 阅读全文
posted @ 2012-12-25 10:26 曹玉志 阅读(27185) 评论(0) 推荐(2) 编辑
摘要: gridview合并单元格(行列)using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Web.UI.WebControls;/// <summary>///GridViewMergeCell 合并GridView liyang 20090916/// </summary>public class GridViewMergeCell{ public GridViewMergeCell() { // // 阅读全文
posted @ 2012-12-20 10:00 曹玉志 阅读(394) 评论(0) 推荐(0) 编辑