Killtest题库

专业IT认证题库学习资料,助您通过IT认证考试!

« 最新最全的70-448题库免费下载!(killtest题库网提供)killtest题库网分享最新的70-642题库! »

killtest题库网提供最新的70-515题库下载!

MCTS 70-515考试题库由我们专业IT认证讲师及产品专家精心打造,包括了当前最新的全真试题,全部附有正确答案。题库的覆盖率在96%以上,确保考生能一次通过考试。

网站承诺,只要你使用我们的题库参加MCTS(TS: Web Applications Development with Microsoft .NET Framework 4 )考试,我们保证你轻松通过考试。

考试代号:70-515

认证名称:TS: Web Applications Development with Microsoft .NET Framework 4

版本号:V8.02

考题数量:123

更新日期:2010-11-16

1.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 pa 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 directive's VaryByControl attribute to the ID of the GridView control.

Answer: C

 

2.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 void Page_Load(object sender, EventArgs e).

{ string s = Master.CityName;.

} 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

 

3.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

 

4.You are implementing an ASP.NET page. You add asp:Button controls for Help and for Detail. You add an ASP.NET skin file named default.skin to a theme. You need to create and use a separate style for the Help button, and you must use the default style for the Detail button. What should you do?

A.Add the following markup to the default.skin file.

<asp:Button ID="Help"></asp:Button>

<asp:Button ID="Default"></asp:Button>

Use the following markup for the buttons in the ASP.NET page.

<asp:Button SkinID="Help">Help</asp:Button>

<asp:Button SkinID="Default">Detail</asp:Button>

B.Add the following markup to the default.skin file.

<asp:Button SkinID="Help"></asp:Button>

<asp:Button ID="Default"></asp:Button>

Use the following markup for the buttons in the ASP.NET page.

<asp:Button SkinID="Help">Help</asp:Button>

<asp:Button SkinID="Default">Detail</asp:Button>

C.Add the following code segment to default.skin.

<asp:Button SkinID="Help"></asp:Button>

<asp:Button></asp:Button>

Use the following markup for the buttons in the ASP.NET page.

<asp:Button SkinID="Help"></asp:Button>

<asp:Button SkinID="Default">Detail</asp:Button>

D.Add the following markup to default.skin.

<asp:Button SkinID="Help"></asp:Button>

Answer: D

 

5.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. public partial class CustomMaster : MasterPage {

public string Region

{

get; set;

}

protected void Page_Load(object sender, EventArgs e)

{

}

}

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 page's 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.

CustomMaster custom = this.Parent as CustomMaster;

lblRegion.Text = custom.Region;

B.Add the following code segment to the Page_Load method of the page code-behind file.

CustomMaster custom = this.Master as CustomMaster;

lblRegion.Text = custom.Region;

C.Add the following code segment to the Page_Load method of the Custom.Master.cs code-behind file.

Label lblRegion = Page.FindControl("lblRegion") as Label; lblRegion.Text = this.Region;

D.Add the following code segment to the Page_Load method of the Custom.Master.cs code-behind file.

Label lblRegion = Master.FindControl("lblRegion") as Label; lblRegion.Text = this.Region;

Answer: B

   如需下载更多的微软认证方面的考题,可登陆killtest题库网

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最近发表

Powered By Z-Blog 1.8 Arwen Build 81206

Copyright xxxx-xxxx Your WebSite. Some Rights Reserved.