asp.net - How to call a webmethod asynchronously and partially render a control? -


I have to call the webservice of the webservice from the code behind the code of a web page in the callback function to bind me the gridview And it needs to be render. I want to present that gridview partially in the callback function in codebind.

How can this be implemented?

Is it possible to apply all these in CodeBeHD without using JavaBytes?

  1. Proxy Use Visual Studio to create a class For the service, use of published WSDL
  2. Create an async web page by setting up Unconnected = True in Page Directive
  3. Page_load of your code ( ) In the method, register the methods that create the PageAsyncTask object and create asyncTask objects Start and End Async Web Service Call
  4. Call the method that was created as part of the proxy class, and the returning caller associated with the IAsyncResult < / Li>
  5. When the web service call is complete, the runtime will call your registered end method, to get the results of the call, call the ending method in the proxy.
  6. Results To your Put a Gridwu on the page.

If it helps, I walked through a detailed example along these lines in my book, including sample code.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -