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…..

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

Question: You work as a Web Application Developer. You are currently using Microsoft .NET Framework 3.5 to create an ASP.NET application. You receive a request from management to create a custom control for the marketing department. You name this control _customForm. You then write the subsequent code:

To ensure productivity you need to make sure that the _customForm control is able to raise the Check_customForm event. You thus need to determine the appropriate method that will achieve this. What should you do? This can be accomplished using: Private check_customForm As New _customFormEventHandler(AddressOf _ check_customFormCallBack) Protected Overridable Sub OnCheck_customForm(ByVal e … Click here to continue…..