• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
《储备驿站》



                           淡泊以明志,宁静而志远!
博客园    首页    新随笔    联系   管理    订阅  订阅
2005年11月3日
使用wse(Web Services Enhancements )把服务器端的文件传到客户端
摘要: (转载博客园)比如说,现在站点A有个附件想传给站点B,我们就可以用WSE来传。在服务器端的webservice文件service1.asmx中写入webmethod:这个是取附件的方法:[WebMethod] public void GetAttachment() { // 获取 SoapContext 作为响应消息 SoapContext myContext = HttpSo... 阅读全文
posted @ 2005-11-03 12:42 Dansin 阅读(223) 评论(0) 推荐(0)
事务的应用
摘要: 在同时删除多个表时建议应用事务来处理,防止产生数据不一致。public int delete(int id) { string strConnectionString =Beyondbit.Data.DbConn.Sql_ConnectionString; int i=0; using (SqlConnection cn = new SqlConnection(strConnect... 阅读全文
posted @ 2005-11-03 12:28 Dansin 阅读(256) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3