摘要:
/// /// 超时处理///////// public class TimeoutChecker{long _timeout;//超时时间System.Action _proc;//会超时的代码System.Action _procHandle;//处理超时System.Action _timeo... 阅读全文
摘要:
/*在DataTable中选择记录*//*向DataTable中插入记录如上,更新和删除如下:*----但是在更新和删除前,首先要找出要更新和删除的记录。*一种方法是遍历DataRow,搜索想要的记录,*--〉然而更聪明的办法是使用DataTable.Select方法:table.Select();... 阅读全文
摘要:
* datetime.now.tostring()方法默认的你是无法得到全部的时间的格式的,只能得到日期,得不到具体时间,如果要具体时间,就应该使用 datetime的tostring()重载,datetime.now.tostring("F")这样就能拿到完整的时间格式了.参数format格式详细... 阅读全文
摘要:
领导让在存储过程中批量添加数据,找出效率最高的,我看到后台代码后,发现可以将list转换成DataTable,把DataTable转换成参数传入存储过程实现批量插入数据,知道还有其他的方法,不过这个方法已经实现,就写一下了: 1.创建表。CREATE TABLE [dbo].[person]( ... 阅读全文
摘要:
1 /// 2 /// 将集合转换成DataTable 3 /// 4 /// 集合 5 /// 6 public static DataTable ToDataTable(IList list) 7 ... 阅读全文
摘要:
使用DataTable作为存储过程的参数最近工作中写了几个存储过 程,需要向存储过程中传递字符串,因为SQL Server 2000中没有内置类似于 split 的函数,只好自己处理,将前台数据集中的一列用逗号拆分存到一个List中,再转化为字符串传给存储过程,很是麻烦。今天看了下SQL Serve... 阅读全文
摘要:
今天用jquery实现了一个很简单的拖动...实现思路很简单 如下:在thickbox弹出层内实现拖拽DIV,那么得进行一下相对宽高的运算:必须加上相对于可见窗口宽高和弹出层宽高之间的差: var x = event.clientX - (document.documentElement.clientWidth - 620) / 2 - event.offsetX; var y = event.clientY - (document.documentElement.clientHeight - 465) / 2 - event.offsetY; $(".pdivt .divnei&q 阅读全文
摘要:
//禁用右键、文本选择功能、复制按键 $(document).bind("contextmenu",function(){return false;}); $(document).bind("selectstart",function(){return false;}); $(document).keydown(function(){return key(arguments[0])}); 阅读全文
摘要:
1 2 3 4 点击按钮弹出层效果 5 6 14 15 32 33 34 35 36 信息关闭37 展示的内容38 39 40 41 点击弹出42 43 44 View Code 阅读全文
摘要:
string strXml = @"10这是公司或者产品的名称this is telphone这是留⾔言内容这是姓名河南郑州市020"; XmlDocument xd = new XmlDocument(); xd.LoadXml(strXml.Trim()); XmlNode xnRoot = xd.SelectSingleNode("MessageData"); if (xnRoot != null) { Console.Write("pm_id="+ xnRoot.ChildNodes[0].InnerText.ToString 阅读全文