Can Page_Load() Be Async
Can a Page_Load() method be async? I ask as if I have declared as such
Can a Page_Load() method be async? I ask as if I have declared as such
I have a process I would like to run in the background. This is executed with a click of an action link.
I’ve been reading some async articles here: http://www.asp.net/web-forms/tutorials/aspnet-45/using-asynchronous-methods-in-aspnet-45 and the author says :
In my web application (ASP.NET) I have a block of code that uses HttpWebRequest to make a call to a REST service and continue execution. Right now it’s taking longer than I would like to complete the full web request. The thing is that what the REST service returns isn’t useful. Ideally I would like to send an Async web request to the REST service and then NOT wait for a response. The problem is that I’ve tried it out using
Yo, i have created a WebProject to test if its possible to create a asyncTask to update a Progressbar:
When a user registers on my website, I don’t see why I need to make him “wait” for the smtp to go through so that he gets an activation email.
Here’s the basic setup. We have an ASP.Net WebForms application with a page that has a Flash application that needs to access an external Web Service. Due to (security I presume) limitations in Flash (don’t ask me, I’m not a Flash expert at all), we can’t connect to the Web Service directly from Flash. The work around is to create a proxy in ASP.Net that the Flash application will call, which will in turn call the WebService and forward the results back to the Flash application.
Having researched the concept of asynchronous web development, specifically from this source, I created a sample application to prove the concept.
Consider the following (based on the default MVC template), which is a simplified version of some “stuff” that happens in the background – it completes fine, and shows the expected result, 20: