摘要:
(转载博客园)比如说,现在站点A有个附件想传给站点B,我们就可以用WSE来传。在服务器端的webservice文件service1.asmx中写入webmethod:这个是取附件的方法:[WebMethod] public void GetAttachment() { // 获取 SoapContext 作为响应消息 SoapContext myContext = HttpSo... 阅读全文
摘要:
在同时删除多个表时建议应用事务来处理,防止产生数据不一致。public int delete(int id) { string strConnectionString =Beyondbit.Data.DbConn.Sql_ConnectionString; int i=0; using (SqlConnection cn = new SqlConnection(strConnect... 阅读全文