试题详情
- 单项选择题 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?()
A、protected void SelectedLanguageChanged(object sender, EventArgs e) {Page.UICulture = ddlLanguage.SelectedValue;}
B、protected override void InitializeCulture() {Page.UICulture = Request.Form["ddlLanguage"];}
C、protected void Page_Load(object sender, EventArgs e) {Page.Culture = Request.Form["ddlLanguage"];}
D、protected override void InitializeCulture() {Page.Culture = ddlLanguage.SelectedValue;}
- B
关注下方微信公众号,在线模考后查看
热门试题
- Youarethenetworkadmi
- 您正在测试一种检查正在运行的进程的方
- You are t
- You need
- You are
- 公司有一个Active Di
- 哪些类型的对象从 MemberInfo类
- A Windows̳
- You have a terminal
- Youarethenetworkadmi
- Your network&e
- Which class
- Your network&e
- 你是TestKing网站的电脑管理员,公
- 你需要设计对象注册结构允许,能够在所有胜
- 下面那个代码段正确的增加了一个TextB
- 你是公司A在某总部SQL S
- You are t
- Your company&e
- Your company has an