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)

Which two actions should you perform?

You are debugging an ASP.NET web page.
The page includes the following method:
[WebMethod]
public string GetServerString()
{

}
The page also includes the following markup:
<asp:ScriptManager ID=”sm1″ runat=”server” />
The following JavaScript code is used to call the GetServerString method:
function GetString()

{
PageMethods.GetServerString(callbackMethod);
}
function callbackMethod(str)
{

}
The AJAX calls to the GetServerString method are failing. You need to ensure that the AJAX call to
the GetServerString method succeeds. Which two actions should you perform? (Each correct answer
presents part of the solution. Choose two.)

You need to ensure that the application can retrieve images from the database without blocking IIS worker proc

You are developing an ASP.NET web application that you will deploy to an Internet Information
Services (IIS) 7.0 server. The application will run in Integrated pipeline mode. The application
contains a photo gallery of images that are stored in a Microsoft SQL Server database. You need to
ensure that the application can retrieve images from the database without blocking IIS worker
process threads. What should you do?

Which two actions should you perform?

You are adding new capabilities to an ASP.NET Web site. The site currently connects to a Microsoft
SQL database by using the…. of the CONTOSO\AppIdentity account, which has been granted access
to only objects within the database. The application requires the following implementation.
• Database objects that support ASP.NET roles must be added to the existing database.
• The CONTOSO\AppIdentity user must be granted only the minimum privileges that are required to
support all features of ASP.NET…….
You need to add the ASP.NET roles support. Which two actions should you perform?

You need to dynamically add values to the end of the drop-down list

You are implementing an ASP.NET page that includes the following down list.
<asp:PlaceHolder ID=”dynamicControls” runat=”server”>
<asp:DropDownList ID=”MyDropDown” runat=”server”>
<asp:ListItem Text=”abc” value=”abc” />
<asp:ListItem Text=”def” value=”def” />
</asp:DropDownList>
</asp:PlaceHolder>
You need to dynamically add values to the end of the drop-down list. What should you do?

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 based 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?

Which of the following code segments will you use?

You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual
Studio .NET 2010 as its application development platform. You create an ASP.NET MVC 2 Web
application using .NET Framework 4.0. You implement a single project area in the MVC 2 Web
application. In the Areas folder, you add a subfolder named MyTest. You add the following files to
the appropriate sub-folders:
MyController. cs
MyHome.aspx
You register a route of the area, setting the route name to MyTest_default and the area name to
test. You create a view named MyViews.aspx that is outside the test area. You need to add a link to
MyViews.aspx that points to MyHome.aspx. Which of the following code segments will you use?


Page 17 of 26« First...10...1516171819...Last »