每次asp.net时,web服务都会返回旧值 [英] web service return old values every time asp.net

查看:72
本文介绍了每次asp.net时,web服务都会返回旧值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网络服务返回旧值



当我上传服务第一次然后返回正确的值但是当我第二次时间与变化然后也返回旧值....!



怎么可能?...



plz帮助我....

web service return old values every time

on server when i upload service 1st time then return correct value but when i cal second time with change then also Return old value....!

how it possible?...

plz help me....

推荐答案

当您在客户端代码中使用服务时,请确保调用client.GetDataCompleted事件然后调用client.GetDataAsync()从webservice获取最新的

值。



您可能还想删除未使用的函数参数。帮助很多
when you're consuming the service in the client code, make ensure you call the client.GetDataCompleted event then call the client.GetDataAsync() to get the latest
values from the webservice.

you may want to remove unused function parameters also. helps a great deal


这篇关于每次asp.net时,web服务都会返回旧值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆