摘要: win7环境,本地没有安装oracle或者客户端,现在需要程序里连接远程oracle DB:如果采用System.Data.OracleClient肯定是不行的,这个要安装客户端的;所以就尝试ODP.NET,到oracle官网下载解压后有了Oracle.DataAccess.dll,本以为就ok了,... 阅读全文
posted @ 2015-12-18 14:54 peter cheng 阅读(2305) 评论(0) 推荐(0) 编辑
摘要: 以下xml: AQZNSJC testproject 2012/6/1 0:00:00 2020/6/1 0:00:00 1002 True 不带namespace的读取,直接用XPath方式即可: ... 阅读全文
posted @ 2015-11-19 10:49 peter cheng 阅读(2077) 评论(0) 推荐(0) 编辑
摘要: 前端框架:Amaze UI:http://amazeui.org/getting-startedBootstrap:http://www.bootcss.com/响应式布局:PropertyDescriptionwidthWidth of the viewport in pixels (or dev... 阅读全文
posted @ 2015-01-20 17:25 peter cheng 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 执行这段脚本,能知道哪个数据库用户、哪台机器锁住了该表,哪个用户哪台机器在等待该资源。SELECT /*+ choose */ bs.username "Blocking User", bs.username "DB User", ws.username "Waiting User", bs.sid... 阅读全文
posted @ 2012-11-19 09:11 peter cheng 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 如图:exception说的比较清楚了,已经从list里删除的这行就不能再读取了,所以在读取之前做一个判断去处理就可以了: For Each coderow As CourseDataset.T_RO_COURSERow In Me.m_myAllCoursesDS.T_RO_COURSE.Rows If coderow.RowState <> DataRowState.Deleted Then dMoeCode = coderow.MOE_CODE End If Next 阅读全文
posted @ 2012-07-26 14:53 peter cheng 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 今天在连接Oracle的时候碰到一个问题,我的机器装的是Oracle9.2客户端,当在asp.net应用中使用数据访问的组件(调用 System.Data.OracleClient)时,程序报“System.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater”的错误,无法创建OracleConnection,但在同一台机器上用winfom客户端又能够正常访问到数据库。更加奇怪的是,我把 应用部署到一台安装了Oracle 8.17客户端的机器上时,却能够正常运行。 阅读全文
posted @ 2012-07-03 17:24 peter cheng 阅读(2870) 评论(1) 推荐(1) 编辑
摘要: 最近碰到很多兼容性问题,所以在这转载一篇文章,作个记录备用。1. document.formName.item("itemName") 问题说明:IE下,可以使用document.formName.item("itemName")或document.formName.elements["elementName"];Firefox下,只能使用document.formName.elements["elementName"]. 解决方法:统一使用document.formName.elements["elem 阅读全文
posted @ 2011-12-15 18:01 peter cheng 阅读(299) 评论(0) 推荐(0) 编辑
摘要: if you add a reference to Microsoft Excel and then try to use it within your ASP.NET application you may receive the following error.Server Error in '/excel' Application. Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the follow 阅读全文
posted @ 2011-12-02 17:51 peter cheng 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: 效果如下图:在官网这里下载所需的js,css等相关文件然后引入以下文件:<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script> <script type="text/javascript" src="js/jquery.multiselect2side.js"></script> <link rel="stylesheet" type="text/c 阅读全文
posted @ 2011-11-30 17:25 peter cheng 阅读(1408) 评论(0) 推荐(0) 编辑
摘要: 今天同事拿了一段代码让我看,说为什么他代码照着W3School写的,效果怎么出不来,他看的是W3School里的jQuery ajax - post() 方法的官方教程,网址是这个:http://www.w3school.com.cn/jquery/ajax_post.asp点击“亲自试一下源代码”链接就可以过去执行代码查看效果,确实效果没问题里面的代码大致如下:<script type="text/javascript" src="/jquery/jquery.js"></script><script type=" 阅读全文
posted @ 2011-11-11 17:53 peter cheng 阅读(1813) 评论(15) 推荐(1) 编辑