Async aspx page
Imports System.Net.Http Imports System.Threading.Tasks Imports ClassLibrary1 Imports ClassLibrary1.libfuncs Public Class LandAndPropertyReport Inherits System.Web.UI.Page Property getLandregistryPolygonsByLandregistryTitleNumberResponse As New getLandregistryPolygonsByLandregistryTitleNumberResponse Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) 'Lets stop on here. Build the report back end (using classlib funcs) sync first. Then async the funcs, then try it from here aspx async. Dim stopWatch As New Stopwatch() stopWatch.Start() RegisterAsyncTask(New PageAsyncTask(Function() GetPWGsrvAsync(Context.Request("title_no")))) stopWatch.Stop() ElapsedTimeLabel.Text = String.Format("Elapsed time: {0}", stopWatch.Elapsed.Milliseconds / 1000.0) ...