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?

You create a Web page that contains the following code.

<script type=”text/javascript”>
var lastId = 0;
</script>
<div class=”File”>
Choose a file to upload:
<input id=”File0″ name=”File0″ type=”file” />
</div>
<input id=”AddFile” type=”button” value=”Add a File” />
<input id=”Submit” type=”submit” value=”Upload” />

You need to provide the following implementation.
* Each time the AddFile button is clicked, a new div element is created.
* The new div element is appended after the other file upload div elements and before the AddFile span.
* Each new element has a unique identifier.

Which code segment should you use?

Which code segment should you use?

A Web page includes the HTML shown in the following code segment.

<span id=”ref”>
<a name=Reference>Check out</a> the FAQ on <a href=”http://www.contoso.com”>Contoso</a>’s web site for more information: <a href=”http://www.contoso.com/faq”>FAQ</a>.
</span>
<a href=”http://www.contoso.com/home”>Home</a>

You need to write a JavaScript function that will dynamically format in boldface all of the hyperlinks in the ref span.
Which code segment should you use?

Which two actions should you perform?

You are implementing an ASP.NET application that makes extensive use of JavaScript libraries.
Not all pages use all scripts, and some scripts depend on other scripts.
When these libraries load sequentially, some of your pages load too slowly.
You need to use the ASP.NET Ajax Library Script Loader to load these scripts in parallel.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use?

You create a Web page that contains drop-down menus that are defined by using div tags in the following code.

<div class=”dropdown-menu”>
<div class=”menu-title”>Menu One</div>
<div class=”menu-items” style=”display:none;”>
<div><a href=”#”>Item One</a></div>
<div><a href=”#”>Item Two</a></div>
</div>
</div>
<div class=”dropdown-menu”>
<div class=”menu-title”>Menu Two</div>
<div class=”menu-items” style=”display:none;”>
<div><a href=”#”>Item Three</a></div>
<div><a href=”#”>Item Four</a></div>
</div>
</div>

You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title.
Which code segment should you use?

What should you do?

You are dynamically adding controls to an ASP.NET page in the Page_Load event handler.
The page will have text boxes that correspond to the columns in a database table.
Each text box will be preceded by a label that displays the name of the corresponding column.
You need to create the form so that when the user clicks the label, the corresponding text box is selected for input.
What should you do?


Page 5 of 11« First...34567...10...Last »