摘要:
方法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 阅读全文
摘要:
<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 阅读全文
摘要:
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() { // // 阅读全文