上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: <?xmlversion="1.0"encoding="utf-8"?><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library://ns.adobe.com/flex/mx"minWidth="955"minHeight="600"><s:layout&g 阅读全文
posted @ 2011-10-13 16:14 Marksion 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 遇到同样的问题,在网页里找到一些资料,先记录下来先!服务端Nhibernate 3.0+wcf ,客户端在调用的时候,如果查询中涉及到关联查询,不管是一对多还是多对一,都会 报错误:无法从传输连接中读取数据: 远程主机强迫关闭了一个现有的连接。这个错误很难判断错在哪里,刚开始时是怀疑查询超时,修改配置文件之后问题依旧。 服务端控制台打印sql语句显示查询是完成了的,网上查了大多数是说序列化的问题,修改配置文件中的序列化最大值,翻了几个老外的blog,重写 DataContractSerializerOperationBehavior, 英文太烂了照搬例子,弄下来还是不行。不过,综合了一... 阅读全文
posted @ 2011-10-01 22:59 Marksion 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 1. C#开发C/S程序,有时需要几个端,如服务器端,管理端,客户端等等, 端与端之间是不同线程或者进程,这就涉及跨线程调用的问题, 使用委托或者异步线程是必不可少的,这里是一个简单的委托线程,即通过委托调用另外一个线程;2. 有图有真相: 3. 源码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSyste.. 阅读全文
posted @ 2011-09-28 23:52 Marksion 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 1. 主题:C#开发当中,多线程很多时候都必不可少的,尤其有处理多任务的情况下;2. 有图有真相:3.源码:View Code usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Threading;namespaceThreadExample{publicpartialclassForm1:Form{StringBuild 阅读全文
posted @ 2011-09-28 23:42 Marksion 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 一年多没接触C#开发了,复习一下Winform方面的知识:C#开启、关闭进程,获取进程列表;有图有真相:1usingSystem;2usingSystem.Collections.Generic;3usingSystem.ComponentModel;4usingSystem.Data;5usingSystem.Drawing;6usingSystem.Text;7usingSystem.Windows.Forms;8usingSystem.Diagnostics;9usingSystem.Threading;1011namespaceProcessExample12{1314publicp. 阅读全文
posted @ 2011-09-28 23:29 Marksion 阅读(2552) 评论(2) 推荐(0) 编辑
摘要: Flex4 ButtonBar 双击出现异常,意外吧,看看运行效果就明白了<?xmlversion="1.0"encoding="utf-8"?><!--dpcontrols\sparkdpcontrols\SparkBBarEvent.mxml--><s:Applicationxmlns:fx="http://ns.adobe.com/mxml/2009"xmlns:s="library://ns.adobe.com/flex/spark"xmlns:mx="library 阅读全文
posted @ 2011-09-23 15:00 Marksion 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 用Group用多,感觉挺方便的,就 经常遇到 addChild, addElement 纠结性,还有图形等等;不过后来遇上 BorderContainer,相应解决好很一些美化方面的问题,它都帮你封装好了,太爽了;突然发发现,它本来就是白色背景的,也没设置 背景透明度的 backgroundAlpha, 查看API,原来里面有秘方:嘿嘿, 看代码就明白了:1<s:BorderContainerwidth="48"2 height="41"3 id="bc4"4 borderVisible="false"> 阅读全文
posted @ 2011-09-22 15:04 Marksion 阅读(2525) 评论(0) 推荐(0) 编辑
摘要: 今天碰到这样的问题,正好前段时间解决, 出现题目的异常,多是引用第三方控件引起的。 在NEW时,需要初始化该对象。 AxESACTIVEXLib.AxESActiveX ax = new AxESACTIVEXLib.AxESActiveX(); ((System.ComponentModel.ISupportInitialize)(this.ax)).BeginInit(); this.Controls.Add(ax); ((System.ComponentModel.ISupportInitialize)(this.ax)).EndInit(); 这样就OK了。 阅读全文
posted @ 2011-09-08 15:55 Marksion 阅读(26246) 评论(6) 推荐(3) 编辑
摘要: 大家在写查询时,为了性能,往往会在表后面加一个nolock,或者是with(nolock),其目的就是查询是不锁定表,从而达到提高查询速度的目的。 什么是并发访问:同一时间有多个用户访问同一资源,并发用户中如果有用户对资源做了修改,此时就会对其它用户产生某些不利的影响,例如: 1:脏读,一个用户对一个资源做了修改,此时另外一个用户正好读取了这条被修改的记录,然后,第一个用户放弃修改,数据回到修改之前,这两个不同的结果就是脏读。 2:不可重复读,一个用户的一个操作是一个事务,这个事务分两次读取同一条记录,如果第一次读取后,有另外用户修改了这个数据,然后第二次读取的数据正好是其它用户修改的数据,这 阅读全文
posted @ 2011-08-25 16:07 Marksion 阅读(4614) 评论(0) 推荐(1) 编辑
摘要: 不多啰嗦,直接贴代码!<?xmlversion="1.0"encoding="utf-8"?><mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml"layout="vertical"currentState="stateOne"><mx:Style>Application{background-image:Embed("assets/images/back2.png");}Appli 阅读全文
posted @ 2011-08-24 15:19 Marksion 阅读(1333) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页