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?
- Proxy Use Visual Studio to create a class For the service, use of published WSDL
- Create an async web page by setting up Unconnected = True in Page Directive
- 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
- Call the method that was created as part of the proxy class, and the returning caller associated with the IAsyncResult < / Li>
- 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.
- 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
Post a Comment