Profitable in terms of performance

it is better to declare instances of Webservice objects as static, since .asmx webservice classes only have static methods.

what i want is that i declare and instantiate the asmx class for the webservice as static in the aspx Page Behind Class.

and on every event call on this page, I can perform the operation against the webservice methods.

is it useful from a performance standpoint?

thanks

Osama

+2


a source to share


1 answer


You shouldn't use static methods in the WebService because it is a disposable type, so you are using a static class, it will cause some problems.



You should only use instances of the WebService class and in an expression using

+1


a source







All Articles