作业帮 > 微软认证(MCSE) > 教育资讯

2013微软认证考试练习题及答案(24)[1]

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/09 19:19:06 微软认证(MCSE)
2013微软认证考试练习题及答案(24)[1]
2013微软认证考试练习题及答案(24)[1]微软认证(MCSE)
【网络综合 - 微软认证(MCSE)试题】
无忧考网为大家收集整理了《2013微软认证考试练习题及答案(24)》供大家参考,希望对大家有所帮助!!!

QUESTION 36
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a page that contains the following code fragment.


You write the following code segment in the code-behind file for the page.
void BindData(object sender, EventArgs e) {
lstLanguages.DataSource = CultureInfo.GetCultures(CultureTypes.AllCultures);
lstLanguages.DataTextField = "EnglishName"; lstLanguages.DataBind();
}

You need to ensure that the lstLanguages ListBox control maintains the selection of the user during postback.
Which line of code should you insert in the constructor of the page?

A.this.Init += new EventHandler(BindData);
B.this.PreRender += new EventHandler(BindData);
C.lstLanguages.PreRender += new EventHandler(BindData);
D.lstLanguages.SelectedIndexChanged += new EventHandler(BindData);

Answer: A

QUESTION 37
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0.
You create a page named oldPage.aspx.
You need to ensure that the following requirements are met when a user attempts to access the page:
The browser diplays the URL of the oldPage.aspx page.
The browser displays the page named newPage.aspx Which code segment should you use?

A.Server.Transfer("newPage.aspx");
B.Response.Redirect("newPage.aspx");
C.if (Request.Url.UserEscaped) { Server.TransferRequest("newPage.aspx"); }
else { Response.Redirect("newPage.aspx", true); }
D.if (Request.Url.UserEscaped) { Response.RedirectLocation = "oldPage.aspx"; Response.Redirect("newPage.aspx", true); }
else { Response.Redirect("newPage.aspx"); }

Answer: A

QUESTION 38
You create a Microsoft ASP.NET application by微软认证(MCSE)