AddOnPreRenderCompleteAsync() public method

public AddOnPreRenderCompleteAsync ( BeginEventHandler beginHandler, EndEventHandler endHandler ) : void
beginHandler BeginEventHandler
endHandler EndEventHandler
return void
示例#1
0
		public static void AddOnPreRenderCompleteAsyncEndThrows_Load (Page p) 
		{
			BeginEventHandler bh = new BeginEventHandler (BeginGetAsyncData);
			EndEventHandler eh = new EndEventHandler (EndGetAsyncDataThrows);
			p.AddOnPreRenderCompleteAsync (bh, eh);

			// Initialize the WebRequest.
			string address = "http://MyPage.aspx";
			myRequest = WebRequest.Create (address);
		}
 internal void RegisterHandlersForPagePreRenderCompleteAsync()
 {
     _page.AddOnPreRenderCompleteAsync(
         new BeginEventHandler(this.BeginExecuteAsyncTasks),
         new EndEventHandler(this.EndExecuteAsyncTasks));
 }
示例#3
0
		public static void ExecuteRegisteredAsyncTasks_Load (Page p)
		{
			BeginEventHandler bh = new BeginEventHandler (BeginGetAsyncData);
			EndEventHandler eh = new EndEventHandler (EndGetAsyncData);
			p.AddOnPreRenderCompleteAsync (bh, eh);
			p.ExecuteRegisteredAsyncTasks ();
		}