PrepAway - Latest Free Exam Questions & Answers

Category: 70-515 (v.3)

Exam 70-515: TS: Web Applications Development with Microsoft .NET Framework 4 (update October 26th, 2015)

You need to ensure that the page generates the appropriate database query

You are developing an ASP.NET web page.
The page includes the following EntityDataSource control:
<asp:EntityDataSource ID=”EntityDataSource1″ runat=”server”
ConnectionString=”name=AdventureWorksEntities”
DefaultContainerName=”AdventureWorksEntities” EnableFlattening=”False”
EntitySetName=”Products” />
The page must filter the data that is displayed in a grid on a query string parameter named
ProductPrefix. The grid must display products whose ProductName starts with the query string
value. You need to ensure that the page generates the appropriate database query. What should
you do?

You need to ensure that the extender can be user to extend only text boxes and that the targetID property can

You are developing an ASP.NET AJAX extender control. The extender includes the following segment.
public class DisabledButtonExtender : ExtenderControlBase
{
[ExtenderControlProperty]
public string TargetID
{
get{…}
set{…}
}}
You need to ensure that the extender can be user to extend only text boxes and that the targetID
property can reference only buttons. What should you do?

You need to ensure that the page displays a list of supervisors with their corresponding employees

You are updating an ASP.NET Web Application. The application includes the fallowing classes.
public class Supervisor
{
public string FirstName { get; set; }
public string LastName { get; set; }
public List<Employee> Employees { get; set; }
}
public class Employee
{
public String FirstName { get; set; }
public String LastName { get; set; }
}
An application page contains the fallowing markup.
<asp:Repeater ID=”rptSupervisor” runat=”server”
DataSourceID=”odsEmployees”>
<ItemTemplate>
<%#Eval(“FirstName”) %> <%#Eval(“LastName”) %>

Employees:

<asp:Repeater ID=”rptEmployees” runat=”server”>
<ItemTemplate>
<%#Eval(“FirstName”) %> <%#Eval(“LastName”) %>

</ItemTemplate>
</asp:Repeater>
</ItemTemplate>
</asp:Repeater>
<asp:ObjectDataSource ID=”odsEmployees” runat=”server”
SelectMethod=”GetSupervisorWithEmployees”
TypeName=”BusinessLayer”>
</asp:ObjectDataSource>
You need to ensure that the page displays a list of supervisors with their corresponding employees.
What should you do?

You need to ensure that the custom formatting is applied to only the EmailAddress property

You are developing a Asp.net MVC 2 application The following Customer class is rendered by the
Html.DisplayForModel helper method.
public class Customer
{
public string FirstName { get; set;}
public string LastName { get; set;}
public string EmailAddress { get; set;}

}
You create a partial view named Email.ascx in the Views/Shared/DisplayTemplates folder. Email.ascx
performs custom formatting of e-mail addresses. You need to ensure that the custom formatting is
applied to only the EmailAddress property. What should you do?

Which client endpoint configuration should you use?

You are developing an ASP.NET web application. The application consumes a WCF service that
implements a contract named IcontosoService. The service is located on the local network and is
exposed using the following endpoint <endpoint name=”udpDiscover”
kind=”udpDiscoveryEndpoint”/>
You need to consume the service by using the WS-Discovery protocol. Which client endpoint
configuration should you use?

You need to ensure that the routes are registered correctly

You are developing an ASP.NET MVC 2 Web application that displays product details. The
global.asax.cs file contains the following code segment
01 public static void registerRoutes(RouteCollection routes)
02 {
03 routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”);
04 routes.MapRoute(“Default”, “{controller}/{action}/{id}”, new {controller = “Home”, action =
“index”, id =
UrlParameter.Optional});
05 }
The URL “/products/PRODUCTNAME”, where PRODUCTNAME is the name of the product, must give
details for the product that is stored in a Microsoft SQL Server database. You need to ensure that the
routes are registered correctly. What should you do?


Page 25 of 26« First...10...2223242526