You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes a Microsoft Windows Communication Foundation (WCF) service. The WCF service exposes the following method. You need to invoke the UpdateCustomerDetails method. Which code segment should you use?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You add a TextBox control named TextBox1. You write the following code segment for validation. Protected Sub _ | English | Chinese | Japan | Korean | - 24 - Test Information Co., Ltd. All rights reserved. CustomValidator1_ServerValidate(ByVal source As Object, _ ByVal args As ServerValidateEventArgs) Dim dt As DateTime = _ IIf([String].IsNullOrEmpty(args.Value), _ DateTime.Now, Convert.ToDateTime(args.Value)) args.IsValid = (DateTime.Now - dt).Days < 10 End Sub You need to validate the value of TextBox1. Which code fragment should you add to the Web page? ()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create the following controls: ?¤A composite custom control named MyControl. ?¤A templated custom control named OrderFormData. You write the following code segment to override the method named CreateChildControls( ) in the MyControl class. (Line numbers are included for reference only.) 01 Protected Overloads Overrides Sub CreateChildControls( ) 02 Controls.Clear( ) 03 Dim oFData As New OrderFormData("OrderForm") 04 05 End Sub You need to add the OrderFormData control to the MyControl control. Which code segment should you insert at line 04? ()
You have a simple web application that has a single Front Controller servlet that dispatches to JSPs togenerate a variety of views. Several of these views require further database processing to retrieve the necessary order object using the orderID request parameter. To do this additional processing, you pass therequest first to a servlet that is mapped to the URL pattern /WEB INF/retreiveOrder.do in the deploymentdescriptor. This servlet takes two request parameters, the orderID and the jspURL. It handles the databasecalls to retrieve and build the complex order objects and then it dispatches to the jspURL. Which codesnippet in the Front Controller servlet dispatches the request to the order retrieval servlet?()
You are developing a Windows Forms Application by using the .NET Framework 3.5.You plan to create a customized Print Preview dialog box in the application.You need to ensure that users can preview their documents before printing.Which two actions should you perform?()
A user named Tom reports that an application on his Windows 2000 Professional computer is running slowly. You notice Tom’s computer has 64 MB of RAM and 100 MB of free disk space. What should you do to improve the performance of his system? ()
Given the web application deployment descriptor elements: 11. 12.ParamAdder 13.com.example.ParamAdder 14.... 24. 25.ParamAdder 26.MyServlet 27. 28. Which element, inserted at line 27,causes the ParamAdder filter to be applied when MyServlet is invokedby another servlet using the RequestDispatcher.include method?()
A developer is designing a web application that must verify for each request: The originating request is froma trusted network. The client has a valid session.The client has been authenticated. Which design pattern provides a solution in this situation?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You add a Web form that contains the following code fragment. AllowSorting="True" DataSourceID="Products"> SelectMethod="GetData" TypeName="DAL" /> | English | Chinese | Japan | Korean | - 42 - Test Information Co., Ltd. All rights reserved. You write the following code segment for the GetData method of the DAL class. (Line numbers are included for reference only.) 01 Public Function GetData( ) As Object 02 Dim cnn As New SqlConnection( 03 Dim strQuery As String = "SELECT * FROM Products" 04 05 End Function You need to ensure that the user can use the sorting functionality of the gvProducts GridView control. Which code segment should you insert at line 04?()
What does the term application partitioning refer to?()