Pass4Test의 Microsoft 70-515덤프를 구매하시면 1년동안 무료 업데이트서비스버전을 받을수 있습니다. 시험문제가 변경되면 업데이트 하도록 최선을 다하기에 Pass4Test의 Microsoft 70-515덤프의 유효기간을 연장시켜드리는 셈입니다.퍼펙트한 구매후는 서비스는 Pass4Test의 Microsoft 70-515덤프를 구매하시면 받을수 있습니다.
NO.1 You are implementing an ASP.NET Web site. The root directory of the site contains a page named
Error.aspx. You need to display the Error.aspx page if an unhandled error occurs on any page within the
site. You also must ensure that the original URL in the browser is not changed.
What should you do?
A. Add the following configuration to the web.config file.
<system.web>
<customErrors mode="On">
<error statusCode="500" redirect="~/Error.aspx" />
</customErrors>
</system.web
B. Add the following configuration to the web.config file.
<system.web>
<customErrors redirectMode="ResponseRewrite"
mode="On" defaultRedirect="~/Error.aspx" />
</system.web>
C. Add the following code segment to the Global.asax file.
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
Response.Redirect("~/Error.aspx")
End Sub
D. Add the following code segment to the Global.asax file.
Protected Sub Page_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Me.Load
Server.Transfer("~/Error.aspx")
End Sub
Answer: B
NO.2 You are developing an ASP.NET Web application. You create a master page. The master page requires
a region where you can add page-specific content by using the ASP.NET page designer.
You need to add a control to the master page to define the region.
Which control should you add?
A. Content
B. ContentPlaceHolder
C. PlaceHolder
D. Substitution
Answer: B
NO.3 You are implementing an ASP.NET application that uses data-bound GridView controls in multiple
pages. You add JavaScript code to periodically update specific types of data items in these GridView
controls.
You need to ensure that the JavaScript code can locate the HTML elements created for each row in these
GridView controls, without needing to be changed if the controls are moved from one page to another.
What should you do?
A. Replace the GridView control with a ListView control.
B. Set the ClientIDMode attribute to Predictable in the web.config file.
C. Set the ClientIDRowSuffix attribute of each unique GridView control to a different value.
D. Set the @ OutputCache directives VaryByControl attribute to the ID of the GridView control.
Answer: B
NO.4 You are creating an ASP.NET Web site. The site has a master page named Custom.master. The
code-behind file for Custom.master contains the following code segment.
Partial Public Class Custom
Inherits System.Web.UI.MasterPage
Public Property Region As String
Protected Sub Page_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Me.Load
End Sub
End Class
You create a new ASP.NET page and specify Custom.master as its master page.
You add a Label control named lblRegion to the new page.
You need to display the value of the master pages Region property in lblRegion.
What should you do?
A. Add the following code segment to the Page_Load method of the page code-behind file.
Dim custom As Custom = Me.Parent
lblRegion.Text = custom.Region
B. Add the following code segment to the Page_Load method of the page code-behind file.
Dim custom As Custom = Me.Master
lblRegion.Text = custom.Region
C. Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file.
Dim lblRegion As Label = Page.FindControl("lblRegion")
lblRegion.Text = Me.Region
D. Add the following code segment to the Page_Load method of the Custom.Master.vb code-behind file.
Dim lblRegion As Label = Master.FindControl("lblRegion")
lblRegion.Text = Me.Region
Answer: B
NO.5 .You are developing an ASP.NET MVC 2 Web application. A page makes an AJAX request and
expects a list of company names in the following format. ["Adventure Works","Contoso"] You need to write
an action method that returns the response in the correct format.
Which type should you return from the action method?
A. AjaxHelper
B. XDocument
C. JsonResult
D. DataContractJsonSerializer
Answer: C
NO.6 You are implementing an ASP.NET MVC 2 application. In the Areas folder, you add a subfolder named
Product to create a single project areA.
You add files named ProductController.vb and Index.aspx to the appropriate subfolders.
You then add a file named Route.vb to the Product folder that contains the following code. (Line numbers
are included for reference only.)
01 Public Class Route
Inherits AreaRegistration
02
03 Public Overrides ReadOnly Property AreaName As String
04 Get
05 Return "product"
06 End Get
07 End Property
08
09 Public Overrides Sub RegisterArea(
ByVal context As AreaRegistrationContext)
10
11 context.MapRoute("product_default",
"product/{controller}/{action}/{id}",
New With {.controller = "Product", .action = "Index",
.id = ""})
12
13 End Sub
End Class
When you load the URL http://<applicationname>/product, you discover that the correct page is not
returned.
You need to ensure that the correct page is returned.
What should you do?
A. Replace line 11 with the following code segment.
context.MapRoute("product_default",
"{area}/{controller}/{action}/{id}",
New With {.area = "product", .controller = "Product",
.action = "Index", .id = ""})
B. Replace line 11 with the following code segment.
context.MapRoute("product_default",
"{area}",
New With {.controller = "Product", .action = "Index", .id = ""})
C. Add the following code segment at line 12.
AreaRegistration.RegisterAllAreas()
D. Add the following code segment to the RegisterRoutes method in the Global.asax.vb file.
AreaRegistration.RegisterAllAreas()
Answer: A
NO.7 You are implementing an ASP.NET application that includes a page named TestPage.aspx.
TestPage.aspx uses a master page named TestMaster.master.
You add the following code to the TestPage.aspx code-behind file to read a TestMaster.master public
property named CityName.
Protected Sub Page_Load(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Me.Load
Dim s As String = Master.CityName
End Sub
You need to ensure that TestPage.aspx can access the CityName property. What should you do?
A. Add the following directive to TestPage.aspx.
<%@ MasterType VirtualPath="~/TestMaster.master" %>
B. Add the following directive to TestPage.aspx.
<%@ PreviousPageType VirtualPath="~/TestMaster.master" %>
C. Set the Strict attribute in the @ Master directive of the TestMaster.master page to true.
D. Set the Explicit attribute in the @ Master directive of the TestMaster.master page to true.
Answer: A
NO.8 You are troubleshooting an ASP.NET Web application. System administrators have recently expanded
your web farm from one to two servers. Users are periodically reporting an error message about invalid
view state. You need to fix the problem.
What should you do?
A. Set viewStateEncryptionMode to Auto in web.config on both servers.
B. Set the machineKey in machine.config to the same value on both servers.
C. Change the session state mode to SQLServer on both servers and ensure both servers use the same
connection string.
D. Override the SavePageStateToPersistenceMedium and LoadPageStateFromPersistenceMedium
methods in the page base class to serialize the view state to a local web server file.
Answer: B
Microsoft 70-515 덤프공부
Posted 2013/7/23 7:56:24 | Category: 미분류 | Tag: