Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 16

Question: You work as a Web Developer at Company.com. You are in the process of creating a Web application that uses Microsoft ASP.NET 3.5. This application will be part of a solution that contains a Windows Communication Foundation (WCF) service project. The Web application will be used to make calls to a service identified in the WCF service project. Management is planning to host the Web application on a separate server from the WCF service. They want the WCF service to perform remotely. You need to add a reference to the WCF service. What should you do? You should add … Click here to continue…..

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 15

Question: You work as a Web Developer at Company.com. You use Microsoft ASP.NET 3.5 to create a Web application. You decide to create a SqlDataAdapter instance named TestAdapter that perform the SQL command:

You need to fill a DataSet instance from the two result sets. The first result set needs to be added to a table named CKClient and the second result should be added to a table named CKProduct. You need to determine a way to accomplish this. What should you do? You should use: adapter.TableMappings.Add(“Customer”, “Customer”); adapter.TableMappings.Add(“Products”, “Product”); DataSet ds = new DataSet(); adapter.Fill(ds); You should use: … Click here to continue…..

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 14

Question: You work as a Web Developer at Company.com. You are in the process of creating a Web application that uses Microsoft ASP.NET 3.5. The following code exists on a page (The line numbers are included for reference purposes): 01 string connStr = WebConfigurationManager.ConnectionStrings[0].ConnectionString; 02 using (SqlConnection conn = new SqlConnection(connStr)) 03 { 04 SqlCommand cmd = new SqlCommand(“GetMenuItems”, conn); 05 cmd.CommandType = CommandType.StoredProcedure; 06 conn.Open(); 07 08 } The GetMenuItems stored procedure returns XML the following format:

You have to insert the string Panel into the ID feature of every MenuItem element programmatically. Identify the code segment should … Click here to continue…..

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 13

Question: You work as a Web Developer at Company.com. You are in the process of creating a Web application that uses Microsoft ASP.NET 3.5. You add a Button control to a page. You want to configure the Button control to display a confirmation message box when it is clicked. The Button control should only perform a postback when the client clicks OK in the confirmation message box. What should you do? You should use the declaration: <asp:Button runat=”server” Text=”Submit” OnClientClick=”confirm(‘Please Confirm?’); return true;”/> You should use the declaration: <asp:Button runat=”server” Text=”Submit” OnClientClick=”confirm(‘Please Confirm?’)”/> You should use the declaration: <asp:Button runat=”server” … Click here to continue…..

Exam 70-562 : Microsoft .NET Framework 3.5, ASP.NET Application Development – 12

Question: You work as an application developer at Company.com. You make use of Microsoft .NET Framework 3.5 to create an ASP.NET application. You decide to write the subsequent code segment in the application. (The line numbers is included for reference purposes) 1 <asp:RequiredFieldValidator ID=”val1″ runat=”server” Display=”Dynamic” 2 ControlToValidate=”TxtBox1″ 3 4 > 5 6 </asp:RequiredFieldValidator> 7 <asp:ValidationSummary DisplayMode=”List” ID=”valSum1″ runat=”server” /> Management wants you to make sure that the error messages displayed in the validation control is displayed in the validation summary list. What should you do? This can be accomplished by adding the following code at line 5: TextBox is … Click here to continue…..