
Web Service
龙葵轩
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Webservice中使用Session、Application
在Asp.Net 2.0里,已经能够在WebMethod里使用 Session 、 Application 这种服务器变量了。 一、Session [WebMethod(EnableSession = true)] public string Hello() { return "Hello," + Session["user"];转载 2010-05-06 15:32:00 · 460 阅读 · 0 评论 -
在asp.net webservice中如何使用session
在使用asp.net编写webservice时,默认情况下是不支持session的,但我们可以把WebMethod的EnableSession选项设为true来显式的打开它,请看以下例子:1 新建网站WebSite 2 新建web服务WebService.asmx,它具有以下两个方法:[WebMethod(EnableSession = true)]public string Logi转载 2010-05-06 15:28:00 · 546 阅读 · 0 评论 -
WebService属性和方法
如果需要在Client和Server端保持状态信息,则可以使用EnableSession属性。缺省情况下EnableSession为false。 WebService端代码: Public Property Connect() As String True)> Get Return Session("_str") End Get转载 2010-05-06 15:48:00 · 529 阅读 · 0 评论 -
在Web Service中公开类、结构体
在类或结构体定义的上面加上Serializable()即可。VB.NET: _Public Structure Test Public TestName As StringEnd Structure原创 2010-05-06 16:21:00 · 483 阅读 · 0 评论