![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WebService
full_peasent
这个作者很懒,什么都没留下…
展开
-
通过Web Services上载文件
向服务器上载文件可能有许多种方法,在利用Web Services上载文件的方法中,下面的这个方法应该是最简单的了。首先建立Upload.asmx文件,其Upload.asmx.cs内容如下,里面已经做了注释:using System;using System.Collections;using System.ComponentModel;using System.Data;using System转载 2006-11-24 19:21:00 · 774 阅读 · 0 评论 -
管理WebService的状态
在WebService中我们常常需要管理程序状态,如用户登录状态、权限状态等。同Web程序一样,我们可以使用Session,Application 来管理WebService的状态。 默认情况下,.Net的WebService是无状态的,其实要想使WebService获得状态管理的功能也很简单,那就是把WebMethod的属性EnableSession 设为true即可,如下例:转载 2006-11-24 19:42:00 · 516 阅读 · 0 评论