• 2022-05-29
    You are the newly appointed Web Application Developer at Certkiller.com. You make use ofMicrosoft .NET Framework v3.5 to create a Microsoft ASP.NET application.  You create a page on the application that contains the code segment below:  The page contains a code-behind file. The code below is written in the file:Private Sub BindData(ByVal sender As Object, ByVal e As EventArgs) lstLanguages.DataSource = CultureInfo.GetCultures(CultureTypes.AllCultures)lstLanguages.DataTextField = "EnglishName"lstLanguages.DataBind()End Sub  You receive an instruction from management to make sure that lstBox1 ListBox control retains theselection of the Certkiller client during postback. You thus need to determine the appropriate codethat should be added in the constructor of the page.  What should you do?()
    A: You should consider adding AddHandler lstLanguages.SelectedIndexChanged, AddressOfBindData to the constructor of the page.
    B: You should consider adding AddHandler Me.Init, AddressOf BindData to the constructor of thepage.
    C: You should consider adding AddHandler Me.PreRender, AddressOf BindData to theconstructor of the page.
    D: You should consider adding AddHandler lstLanguages.PreRender, AddressOf BindData to theconstructor of the page.
  • 举一反三