PrepAway - Latest Free Exam Questions & Answers

Category: 70-515

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4

Which code segment should you use?

A Web service returns a list of system users in the following format.

<xml version=”1.0″ >
<users>
<user id=”first”>
<name>Name of first user</name>
<email>first@contoso.com</email>
</user>
<user id=”second”>
<name>Name of second user</name>
<email>first@contoso.com</email>
</user>
</users>

You need to populate a drop-down menu with the IDs and names of the users from the Web service, in the order provided by the service.
Which code segment should you use?

What should you do?

You create an ASP.NET page.
The page uses the jQuery $.ajax function to make calls back to the server in several places.
You add the following div element to the page.

<div id=”errorInfo”>
</div>

You need to implement a single error handler that will add error information from all page $.ajax calls to the div named errorInfo.
What should you do?

What should you do?

You are implementing an ASP.NET AJAX page.
You add two UpdatePanel controls named pnlA and pnlB. pnlA contains an UpdatePanel control named pnlAInner in its content template.
You have the following requirements.
* Update panels pnlA and pnlB must refresh their content only when controls that they contain cause a postback.
* Update panel pnlAInner must refresh its content when controls in either pnlA or pnlB or pnlAInner cause a postback.

You need to configure the panels to meet the requirements.
What should you do?

Which two actions should you perform?

You are implementing an ASP.NET AJAX page.
You add the following control to the page.

<asp:UpdatePanel ID=”pnl1″ runat=”server” UpdateMode=”Conditional”>
<ContentTemplate> … </ContentTemplate>
</asp:UpdatePanel>

You need update the contents of the UpdatePanel without causing a full reload of the page.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which declaration should you use?

You create a Web page that contains the following code. (Line numbers are included for reference only.)

01 <script>
02 function changeColor(c) {
03 message.style.color = c;
04 }
05 </script>
07 <p id=”message”>Welcome!</p>
08 <ul id=”color”>
09 <li>Black</li>
10 <li>Red</li>
11 </ul>

You need to ensure that when the user clicks an item in the list, the text color of the “Welcome!” message will change.
Which declaration should you use?


Page 4 of 11« First...23456...10...Last »