找考题网-背景图
单项选择题

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:<asp:ListBox ID="lstBox1"AutoPostBack="true" runat="server" /> 
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.

热门试题

单项选择题Certkiller.com has employed you as a system administrator. You make sue of .NET Frameworkv3.5 to create an ASP.NET application. The application contains a Web form file. This file isnamed MovieReviews.aspx.  The file is linked to a LinqDataSource DataSource named LinqDataSource1. LinqDataSource1contains a primary key named TestMovieID. The application also contains a DetailsView controlthat is named CKDetailsView. The code below is included in the MovieReviews.aspx file. (The linenumbers is included for reference purposes) 01 <asp:DetailsView ID= DView1  runat= server DataSourceID= LinqDS1 0304  > 05 <Fields> 06  <asp:BoundField DataField= TestID  HeaderText= No  InsertVisible= False 08  ReadOnly= True  SortExpression= TestID   > 09  <asp:BoundField DataField= Name  HeaderText= Name 10  SortExpression= Name   > 11  <asp:BoundField DataField= Cat  HeaderText= Category  SortExpression= Cat   > 13  <asp:CommandField ShowDeleteButton= false  ShowEditButton= True   14.  ShowInsertButton= True   > 15 < Fields> 16 < asp:DetailsView>  All Certkiller clients makes use of DView1. To ensure productivity you need to make sure that theyare able to insert and update content in the control. It is vital that you ensure the prevention ofduplivcation of the link button controls for the Edit and New operations. You thus need todetermine the appropriate code fragment you need to insert at line 3.  What should you do?()

A.A
B.B
C.C
D.D

单项选择题You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication.  You decide to make use of Microsoft ASP.NET 3.5 in order to create the application. The followingmarkup is present on the page:  <asp:TextBox ID= _statusTextBox  runat= server >  <asp:Button ID= _button  runat= server  Text= Filter >  <asp:SqlDataSource ID= _sqlDataSource  runat= server    ConnectionString= <%$ ConnectionStrings:Certkiller %>   SelectCommand= GetUsers  SelectCommandType= StoredProcedure   FilterExpression= Active=1 AND Name LIKE ’{0}%’ >  <FilterParameters>  <asp:ControlParameter ControlID= _statusTextBox >  < FilterParameters>  < asp:SqlDataSource>  <asp:GridView ID= _CKGridView  runat= server  DataSourceID= _sqlDataSource >  The page is used to retrieve the Users from a company database. However, only the active usersare displayed. The TextBox control allows you to also filter users by status. You do not specify astatus when you click the Filter button. You notice that the page does not filter by active users andshows all the users that are retrieved from the database. You need to make the necessary settingsto ensure that only the active users are being displayed on the page when a status is notspecified.  What should you do?()

A.You should ensure that a default value for the Status property of the ControlParameter controlis set.
B.You should ensure that the PropertyName property of the ControlParameter control is set toText.
C.You should ensure that the ControlParameter control’s ConvertEmptyStringToNull property isset to false.
D.You should ensure that the {0} placeholder in the FilterExpression property is replaced with the(?) symbol.