PrepAway - Latest Free Exam Questions & Answers

What should you do?

You are creating an ASP.NET application by using the .NET Framework 3.5.

A Web form in the application needs to call a Web service. You place the following code segment in the Page_l_oad event of the form.

AddOnPreRenderCornpleteAsync (

new BeginEventHandler (BecrinCallWebService) ,

new EndEventHandler(EndCallWebService)

);

You need to ensure that the BeginCallWebService and EndCallWebService routines are called when the page is accessed.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Move the code segment to the Prelnit event handler.

B.
Add the AsyncTimeout = “0” attribute to the Page directive.

C.
Add the Async=”True” attribute to the Page directive.

D.
Move the code segment to the PreRender event handler.

Explanation:
See also:http://www.c-sharpcorner.com/UploadFile/rmcochran/Multi- threadedAsynchronousProgramming07262007012530AM/Multi- threadedAsynchronousProgramming.aspx


Leave a Reply