摘要: value = args[key]... 阅读全文
posted @ 2011-06-28 14:43 大明1986 阅读(239) 评论(0) 推荐(0) 编辑
摘要: json.ashx public void ProcessRequest (HttpContext context) { context.Response.ContentType = "text/plain"; //context.Response.Write("Hello World"); //反射的机制:只需要传方法进来就可以执行方法、获得数据。。 if (context.Request["cmd"] != null) { string cmd = context.Request["cmd"]; var method = this.GetType().GetMethod(cmd); if (method != null) { method.Invoke(this, new object[] { context }); } 阅读全文
posted @ 2011-06-24 10:20 大明1986 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 实现javascript打印功能,打印整个页面就很简单,但如果指定打印某一个区域就有点难点,这里有一个jQuery插件PrintArea可实现打印页面某区域功能。 使用说明需要使用jQuery库文件和PrintArea库文件 使用方法一,包含文件部分 二,html部分 ... 阅读全文
posted @ 2011-05-04 17:03 大明1986 阅读(17232) 评论(1) 推荐(1) 编辑
摘要: .Net开发过程中,涉及多个数据库和不同数据库的分布式事务(Distributed Transaction)开发,有时会碰到“与基础事务管理器的通信失败”的错误。导致这个错误一般有下列三个原因:1) MSDTC设置不正确;2) 是否被防火墙阻挡;3) 跨网段通讯或跨域通讯;在数据库项目开发时,连接一... 阅读全文
posted @ 2011-04-25 11:39 大明1986 阅读(1373) 评论(0) 推荐(0) 编辑
摘要: //Parent function openChild() { var k = window.showModalDialog('',window,'dialogWidth=800px;dialogHeight=520px;status=no'); if(k == 1)//判断是否刷新 { window.location.reload(); } } //child 阅读全文
posted @ 2011-04-14 12:59 大明1986 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 我们都知道Dispose的作用是用来释放所使用的资源,也不是每次关闭窗体时都要释放资源,何时来使用了,当我们通过New来打开一个窗口时,每当关闭窗口后,就必须使用Dispose释放关闭窗口所使用的资源,你连续多次打开New出的窗体时,内存会不断的增加。还有一个就是当我们需要往其他页面传值的时候,也需要释放资源,不然内存也会增加。 阅读全文
posted @ 2011-04-06 15:58 大明1986 阅读(3409) 评论(0) 推荐(0) 编辑
摘要: //文件夹中按时间排序最新的文件读取 public class DirectoryLastTimeComparer : IComparer { #region IComparer 成员 public int Compare(DirectoryInfo x, DirectoryInfo y) { return x.LastWriteTime.CompareTo(y.LastWriteTime); } #endregion } //文件夹中按时间排序最新的文件读取 public class FIleLastTimeComparer : IComparer { #region IComparer 成员 阅读全文
posted @ 2011-03-30 11:19 大明1986 阅读(1968) 评论(0) 推荐(1) 编辑
摘要: 右键选中节点事件... 阅读全文
posted @ 2010-09-06 13:52 大明1986 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Jquery图片放大镜... 阅读全文
posted @ 2010-07-13 15:46 大明1986 阅读(18900) 评论(4) 推荐(2) 编辑
摘要: Repeater与Table的配合使用... CSS Repeater - 交错显示行背景色 table行鼠标进入事件特效 禁止文本换行 点击Repeater中的button,获取table中item的id,在连接的DataTable中删除数据 阅读全文
posted @ 2010-07-12 10:42 大明1986 阅读(3619) 评论(0) 推荐(0) 编辑