可学答题网 > 问答 > MCTS(70-515)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You are implementing a


You are implementing an ASP.NET Web site.  The site allows users to explicitly choose the display language for the site's Web pages. You create a Web page that contains a DropDownList named ddlLanguage, as shown in the following code segment. The site contains localized resources for all page content that must be translated into the language that is selected by the user. You need to add code to ensure that the page displays content in the selected language if the user selects a language in the drop-down list. Which code segment should you use?()

  • Aprotected void SelectedLanguageChanged(object sender, EventArgs e) {Page.UICulture = ddlLanguage.SelectedValue;}
  • Bprotected override void InitializeCulture() {Page.UICulture = Request.Form["ddlLanguage"];}
  • Cprotected void Page_Load(object sender, EventArgs e) {Page.Culture = Request.Form["ddlLanguage"];}
  • Dprotected override void InitializeCulture() {Page.Culture = ddlLanguage.SelectedValue;}
参考答案
参考解析:
分类:MCTS(70-515)题库
相关推荐

1、You are implementing a

You are implementing an ASP.NET Web site that uses a custom server control named Task. Tas...

2、You are implementing a

You are implementing an ASP.NET application. You add the following code segment.You need to add...

3、You are implementing a

You are implementing a very simple TCP/IP network. It rarely changes and you would like to...

4、You are implementing a

You are implementing an ASP.NET MVC 2 Web application that contains several folders. The Views/...

5、You are implementing a

You are implementing an ASP.NET application that will use session state in out-of-proc mode. Yo...

6、You are implementing a

You are implementing an ASP.NET application that uses LINQ to Entities to access and update&ens...