上一页 1 ··· 8 9 10 11 12
摘要: 今天正式使用网购的htc金字塔,虽然花了不少米,但偶尔奢侈一吧,也不过分,呵呵,阿Q一下! 第一次使用HTC手机,超爽! 仅以此贴纪念一下。 Power by HTC 阅读全文
posted @ 2011-07-28 15:02 行野摄色 阅读(255) 评论(0) 推荐(0)
摘要: 在DataList的ItemTemplate项中增加数据分隔行效果,但首行需特殊处理。见如下样例 <tr style='<%# (System.Convert.ToInt32(Container.ItemIndex)>0)? "DISPLAY: block":"DISPLAY: none" %>'> <td colSpan="4" height="1"> <hr color="#a9a9a9" s... 阅读全文
posted @ 2011-07-27 14:04 行野摄色 阅读(316) 评论(0) 推荐(0)
摘要: 在多条件组合查询时,常需在SQL语句中动态加入查询条件,对查询条件作参数化处理ArrayList alParms = new ArrayList();SqlParameter parm = null;//标题关键字if(infoBM.Title!=string.Empty){ strSQL += " and CHARINDEX(@PARM_Title, t.cnvcTitle)>0 "; parm... 阅读全文
posted @ 2011-07-27 13:24 行野摄色 阅读(2236) 评论(0) 推荐(0)
摘要: 1.在ItemCommand事件等中获取数据行关键列值//取得关键编号string strId = dgBrowse.DataKeys[(int)e.Item.ItemIndex].ToString();string strType = e.Item.Cells[列序号].Text2.在ItemDataBound事件中获取列值if ((e.Item.ItemType != ListItemType... 阅读全文
posted @ 2011-07-27 13:05 行野摄色 阅读(454) 评论(0) 推荐(0)
摘要: 1、DataGrid表格增加序号列,在模板列中加入Container.ItemIndex +1即可 如:dgBrowse为DataGrid控件名称,Container.ItemIndex仅为当前页中序号<ItemTemplate> <%#this.dgBrowse.CurrentPageIndex * this.dgBrowse.PageSize + Container.ItemIndex +1%... 阅读全文
posted @ 2011-07-27 12:05 行野摄色 阅读(534) 评论(1) 推荐(0)
上一页 1 ··· 8 9 10 11 12