Online Access Free 70-515 Exam Questions

Exam Code:70-515
Exam Name:TS: Web Applications Development with Microsoft .NET Framework 4
Certification Provider:Microsoft
Free Question Number:186
Posted:Aug 31, 2025
Rating
100%

Question 1

You are implementing an ASP.NET page that includes a text box.
You need to validate values that are typed by users to ensure that only numeric values are submitted.
Which control markup should you use?

Question 2

You are developing an ASP.NET MVC 2 Web Application that displays daily blog posts.
Visitors access a blog post page by using a Web address to pass in the year, month, and day -for example,
contoso.com/2010/07/20.
The application must register the appropriate route to use the Display action of the blog controller.
Only page visits with a four digit year, two-digit month and two-digit dat can be passed to the action.
You need to ensure that the route is registered correctly,
Which code segment should you add?

Question 3

You are developing an ASP.NET Web page that contains input controls, validation controls, and a button
named btnSubmit.
The page has the following code-behind. (Line numbers are included for reference only.)
01 public partial class _Default : System.Web.UI.Page
02 {
03 protected void SaveToDatabase()
04 {
05
06 }
07
08 protected void btnSubmit_Click(object sender, EventArgs e)
09 {
10
11 }
12 }
You need to ensure that all data that is submitted passes validation before the data is saved in a database. What should you do?

Question 4

You are developing an ASP.NET web page.
The page must display data from XML file named Inventory.xml. Inventory.xml contains data in the following format.
<?xml version="1.0" standalone="yes"?> <inventory> <vehicle Make="BMW" Model="M3" Year="2005" Price="30000" instock="Yes"> <Ratings>....</Ratings>
</Vechicle> .... </Inventory>
You need to display Vehicle elements that have the inStock attribute set to YES.
Wich two controls should you add to the page? (Each control presents part of the solution.Choose two.)

Question 5

You are implementing an ASP.NET page.
You add and configure the following ObjectDataSource.
<asp:ObjectDataSource SelectMethod="GetProductByProductId" ID="odc" runat="server" TypeName="ProductDAL"> <SelectParameters> <asp:Parameter Name="productId" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource>
The page will be called with a query string field named pid.
You need to configure the ObjectDataSource control to pass the value of the pid field to
GetProductsByProductId method.
What should you do?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.