摘要: 1.使用SqlCommand.ExecuteReader()方法会造成窗体假死,所以用.net2.0新增的方法BeginExecuteReader代码如下:private delegate void DataGridViewHandler(DataTable dt); /// <summary> /// 此处开始加在数据 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> priv 阅读全文
posted @ 2012-11-17 18:17 天涯海客 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 最简单的代码publicclassClientEngine:SoapExtension{StreamoldStream;StreamnewStream;stringactionName;///<summary>///构造函数///</summary>publicClientEngine(){}publicoverrideobjectGetInitializer(LogicalMethodInfomethodInfo,SoapExtensionAttributeattribute){returnattribute;}publicoverrideobjectGetIniti 阅读全文
posted @ 2012-11-17 16:10 天涯海客 阅读(218) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Web.Services; using System.Web.Services.Protocols; using System.IO; namespace SunLibrary.Web { /* **********服务器端配置********** 在WebService项目中,增加Soap扩展有两种方式,web.config配置或WebMethod配置(推荐使用WebMethod方式只扩展必要的接口) 1.web.config配置将对所有WebMethod发生作用。!!但是,无法配置Attribute的自定义属性!! ... 阅读全文
posted @ 2012-11-17 15:56 天涯海客 阅读(540) 评论(0) 推荐(0) 编辑