摘要:
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { System.Data.DataRowView dv = e.Row.DataItem as System.Data.DataRowView; e.Row.Cells[2].Text = status.ConvertKey...
阅读全文
posted @ 2012-04-26 15:30
深海大虾
阅读(985)
推荐(0)
摘要:
Conditional comments only work in IE, and are thus excellently suited to give special instructions meant only for IE. They are supported from IE 5 onwards.Conditional comments work as follows:<!--[if IE 6]>Special instructions for IE 6 here<![endif]-->Their basic structure is the same as
阅读全文
posted @ 2012-03-31 16:05
深海大虾
阅读(1312)
推荐(0)
摘要:
君子坦荡荡,小人敲代码。商女不知亡国恨,一天到晚敲代码。举头望明月,低头敲代码。洛阳亲友如相问,就说我在敲代码。少壮不努力,老大敲代码。垂死病中惊坐起,今天还没敲代码。生当作人杰,死亦敲代码。人生自古谁无死,来生继续敲代码。众里寻他千百度,蓦然回首,那人正在敲代码。
阅读全文
posted @ 2012-03-31 15:32
深海大虾
阅读(809)
推荐(0)
摘要:
必须是静态类的静态方法 参数必须使用this指定是哪种类型的拓展方法public static class Common { /// <summary> /// 转换Object类型为string,null为空值 /// </summary> /// <param name="val"></param> /// <returns></returns> public static string Conversion(object val) { if (val == DBN...
阅读全文
posted @ 2012-03-28 18:25
深海大虾
阅读(629)
推荐(1)
摘要:
日期的操作一直让我比较晕~~~~ 有需求需要这个功能 找SDK里面没有这方面的方法 于是有如下写法planDate = Convert.ToDateTime(createDate.Year.ToString("yyyy") + "-" + month.ToString("MM") + "-" + day.ToString("dd"));过了一会儿顿悟了,出现了下面的写法/// <summary>/// 设置日期为指定的月和日/// </summary>/// <pa
阅读全文
posted @ 2012-03-28 16:35
深海大虾
阅读(1722)
推荐(1)
摘要:
protected void Page_Load(object sender, EventArgs e) { if (!Biz.Process.IsTobe(pId)) { this.btnDetermine.Click -= new System.EventHandler(btnDetermine_Click); this.btnDetermine.Click += new System.EventHandler(btnCancel_Click); ...
阅读全文
posted @ 2012-03-22 10:42
深海大虾
阅读(1597)
推荐(0)
摘要:
如何通过key获取value值,键找值!多线程单利模式 3月15日第三版封装不是很好,希望各位路过的高手批评指正 给出更优秀的代码方便后来人模拟微软风格的写法,语义极其清晰,上代码public void Test() { ProcessDesignStatusEnum status = new ProcessDesignStatusEnum(); string value = status.流程设计.未提交.value; string key = status.流程设计.未提交.key; st...
阅读全文
posted @ 2012-03-12 17:02
深海大虾
阅读(735)
推荐(0)
posted @ 2012-03-12 13:44
深海大虾
阅读(360)
推荐(0)
摘要:
一直以来,都对JS获取元素的位置感到非常的困惑:一会client、一会offset、一会scroll。再加上各大浏览器之间的不兼容,唉,搞得哥晕晕乎乎的。而很多页面效果都要用到这些位置。不得已,得练练,得记记。下面就来说说这个基于 JQuery的简易拖拽插件吧。 按惯例,先说说拖拽的原理,以及搞这么一个东东的步骤:那什么是拖拽呢? 看名字就知道了:就是把一个东东拖来拽去的。 放到我们的DOM上,就是改变它的位置。它只有两个难点:1、如何知道是在拖? 2、如何知道从哪拖,拖到哪?其实,这也算不上难点,毕竟两者都是基础的东西,关键在于熟练。换到js 中,我们搞一个拖拽效果,大致有如下步骤:1、让元
阅读全文
posted @ 2012-03-07 13:15
深海大虾
阅读(801)
推荐(0)
posted @ 2012-03-02 16:05
深海大虾
阅读(670)
推荐(0)