Showing posts with label generated. Show all posts
Showing posts with label generated. Show all posts

Monday, March 26, 2012

Progress display priority to low

I have a page where a very large CSV response is generated on a button-click. During that action I want to show a progress which I have made an ASP.NET AJAX PageMethod for and I call it from a javascript interval. However once the processing is happening, my progress doesn't update. Either the interval is stopped by the browser or the runtime can't accept the pagemethod call because it's too busy? Is there a way around this? I tried threading, but apparently that doesn't allow returning something...

Thanks

You are missing how AJAX calls work... Once a request is made to the server it will only receive the callback when the method completes. See my previous post, here:http://forums.asp.net/p/1151473/1879009.aspx.

An approach you can use is:http://blogs.visoftinc.com/archive/2007/09/10/modalupateprogress.aspx. There isn't a real-time progress in that approach however. The process to do a "real-time" progress bar is extra overhead in the web world; animated gifs are typically used (see:http://www.ajaxload.info/ for some good graphics)

-Damien

Proxy Class generated at run time

Greetings,

as i know that the proxy class for the webservice is generated at run time ,but i am not understanding this concept because before i run my application i can access all the members(as methods) of this generated proxy class.

so i need to understand this topic?

your help is highly appreciated

best regards



Hi Wissam,

The proxy class indeed is created at runtime. When i look at my proxy this isn't possible. Are we talking about a javascript proxy?

Regards


Greetings,

i mean the proxy class when you add a web reference to the webservice.


Hi Wissam,

Yep when you create a webreference then you will be able to see the methods. The proxy isn't generated at runtime. The proxy is generated at design time. Hope this helps!

Regards,

Saturday, March 24, 2012

Question about generated proxies

I'm looking at the following example where all of the functions calling web services use a common call back function.

http://www.asp.net/AJAX/Documentation/Live/ViewSample.aspx?sref=Sys.Net.WebServiceGenerics/cs/generics.js

I can see how organization might be a little better using the call back function and a switch statement, but are there performance benefits? Which would have better performance, individual call back functions or the all in one version? Are there any other benefits or detriments between the two?

thanks

Nick

There is no performance benifits in using a common callback. You can use the Common Callback when you have to process similar kind of logic for more than one web service call result.