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

You create a Microsoft


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.   English  Chinese  Japan  Korean  - 92 - Test Information Co., Ltd. All rights reserved. <asp:ListBox ID="lstLanguages"AutoPostBack="true" runat="server" />  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?()

  • Athis.Init += new EventHandler(BindData); 
  • Bthis.PreRender += new EventHandler(BindData); 
  • ClstLanguages.PreRender += new EventHandler(BindData); 
  • DlstLanguages.SelectedIndexChanged += new EventHandler(BindData);&e
参考答案
参考解析:
分类:MCPD(70-562)题库
相关推荐

1、You create a Microsoft

You&ensp;create&ensp;a&ensp;Microsoft&ensp;ASP.NET&ensp;application&ensp;by&ensp;using&ensp;the&ensp;Microsoft&ensp;.NET&ensp;Framework&ensp;version&ensp;3.5.&ensp;T...

2、You create a Microsoft

You&ensp;create&ensp;a&ensp;Microsoft&ensp;ASP.NET&ensp;application&ensp;by&ensp;using&ensp;the&ensp;Microsoft&ensp;.NET&ensp;Framework&ensp;version&ensp;3.5.&ensp;Y...

3、You create a Microsoft

You&ensp;create&ensp;a&ensp;Microsoft&ensp;ASP.NET&ensp;application&ensp;by&ensp;using&ensp;the&ensp;Microsoft&ensp;.NET&ensp;Framework&ensp;version&ensp;3.5.&ensp;Y...

4、You create a Microsoft

You&ensp;create&ensp;a&ensp;Microsoft&ensp;ASP.NET&ensp;application&ensp;by&ensp;using&ensp;the&ensp;Microsoft&ensp;.NET&ensp;Framework&ensp;version&ensp;3.5.&ensp;Y...

5、You create a Microsoft

You&ensp;create&ensp;a&ensp;Microsoft&ensp;ASP.NET&ensp;application&ensp;by&ensp;using&ensp;the&ensp;Microsoft&ensp;.NET&ensp;Framework&ensp;version&ensp;3.5.&ensp;&...

6、You create a Microsoft

You&ensp;create&ensp;a&ensp;Microsoft&ensp;ASP.NET&ensp;application&ensp;by&ensp;using&ensp;the&ensp;Microsoft&ensp;.NET&ensp;Framework&ensp;version&ensp;3.5.&ensp;Y...