会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
devin liang
博客园
首页
新随笔
联系
管理
订阅
2014年6月12日
C#运算String型表达式
摘要: 现在有一个小需求就是一个xml中有一个condition节点,节点中包含有一个字符串类型的表达式,要对这个表达式进行运算,判断运算结果是true还是false。如下: param1>3现需要运算condition中的表达式param1>3。表达式的语法符合javascript表达式语法。解决的代码...
阅读全文
posted @ 2014-06-12 14:16 devin2
阅读(640)
评论(0)
推荐(0)
2014年3月28日
根据输入内容自动筛选数据--基于option操作
摘要: >" %> 选择人员 双击选择用户 ...
阅读全文
posted @ 2014-03-28 15:35 devin2
阅读(504)
评论(0)
推荐(0)
2014年2月25日
javascript判断包含中文字符串的长度
摘要: var str="测试代码a";一般情况下,我们用i.length会得到结果5但有时候我们需要9,下面的小代码可以解决问题Javascript代码结果是:9
阅读全文
posted @ 2014-02-25 14:27 devin2
阅读(322)
评论(0)
推荐(0)
2014年1月16日
根据条件,隐藏或显示gridview中的按钮或其他控件,
摘要: protected void Bind() { CompInfo ci = (CompInfo)Session["coi"]; Complinkappl cla = new Complinkappl(); IList iclai = cla.Selsonly(" cpacompid = " + ci.Compid.ToString() + " order by cpadate desc"); this.GridView1.DataSource = iclai; this...
阅读全文
posted @ 2014-01-16 14:14 devin2
阅读(1078)
评论(0)
推荐(0)
2014年1月13日
c# datetime 格式化
摘要: 转自 :http://www.cnblogs.com/quejuwen/p/3517275.html//c datetime 格式化DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Label3.Text = dt.ToFileTimeUtc().ToString();//127756704859912816Label4.Text = dt.ToLocalTime().ToS
阅读全文
posted @ 2014-01-13 21:55 devin2
阅读(213)
评论(0)
推荐(0)
2013年12月27日
javascript如何获取html中带runat="server"的控件的值
摘要: 用页面中有一个隐藏域用普通的document.getElementById("hdQuarterDocId")运行时会报错,取不到这个控件的值或者报这个控件为null。要用这个方法才能取到这个控件的值 document.getElementById("");
阅读全文
posted @ 2013-12-27 16:22 devin2
阅读(545)
评论(0)
推荐(0)
公告