2014年9月18日
摘要: Extjs & Ext.Net 弹出整个浏览器对话框的方法top.Ext.Msg.alert("值");top.Ext.Msg.confirm("值");top.Ext.Msg.notify("值");Ext.getCmp("控件ID").setText("值"); //设置控件的Text值Ext.... 阅读全文
posted @ 2014-09-18 09:17 Struggling Rookie 阅读(409) 评论(0) 推荐(0) 编辑
  2014年9月16日
摘要: 验证数字的正则表达式集 验证数字:^[0-9]*$验证n位的数字:^\d{n}$验证至少n位数字:^\d{n,}$验证m-n位的数字:^\d{m,n}$验证零和非零开头的数字:^(0|[1-9][0-9]*)$验证有两位小数的正实数:^[0-9]+(.[0-9]{2})?$验证有1-3位小数的正实数... 阅读全文
posted @ 2014-09-16 15:42 Struggling Rookie 阅读(142) 评论(0) 推荐(0) 编辑
  2014年9月15日
摘要: .NET 3.5(5) - LINQ查询操作符之Select、Where、OrderBy、OrderByDescending介绍 ·Select -Select选择;延迟 ·Where -Where查询;延迟 ·OrderBy -按指定表达式对集合正序排序;延迟 ·OrderByDescending... 阅读全文
posted @ 2014-09-15 15:24 Struggling Rookie 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 今天碰到要在一个页面获取另外一个页面url传过来的参数,一开始很本能的想到了用 split("?")这样一步步的分解出需要的参数。后来想了一下,肯定会有更加简单的方法的!所以在网上找到了两个很又简单实用的方法,mark下方法一:正则分析法function getQueryString(name) {... 阅读全文
posted @ 2014-09-15 09:43 Struggling Rookie 阅读(206) 评论(0) 推荐(0) 编辑
  2014年9月10日
摘要: 1、not in:lstDown中的DownID属性值不在lstDownfb中的DownIDvar lstDown2 = (from d in lstDown where !(from d2 in lstDownfb select d2.DownID).Contains(d.DownID) sele... 阅读全文
posted @ 2014-09-10 16:50 Struggling Rookie 阅读(120) 评论(0) 推荐(0) 编辑
  2014年9月9日
摘要: 一:如果不想有转意 则用CDATA 王五]]> 1 #region 通过编程方式实现xml写入 2 ////1.在内存中构建一个Dom对象 3 //XmlDocument xmlDoc = new XmlDocument(); 4 ... 阅读全文
posted @ 2014-09-09 18:31 Struggling Rookie 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //1.动态加载程序集 Assembly ams = Assembly.LoadFile(@"c:\反射复习.dll"); //2.获取类型 //Type[] t = ams.GetTypes(); //获取所有公共类型的 //Type[] t = ams.GetExporte... 阅读全文
posted @ 2014-09-09 15:12 Struggling Rookie 阅读(128) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2014-09-09 10:58 Struggling Rookie 阅读(1) 评论(0) 推荐(0) 编辑
  2014年9月5日
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebContro... 阅读全文
posted @ 2014-09-05 15:53 Struggling Rookie 阅读(97) 评论(0) 推荐(0) 编辑
摘要: public BDMSSystemException(string message, Exception innerException) { if (!string.IsNullOrEmpty(message)) { string path = string.Empty; if (n... 阅读全文
posted @ 2014-09-05 09:07 Struggling Rookie 阅读(103) 评论(0) 推荐(0) 编辑