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

Certkiller.com has hired you as a network administrator for their network. You are in the process ofcreating an ASP.NET application using .NET Framework v3.5. The newly created applicationcontains a DataSourceControl. 
This control is named KingCatagory. This control is bound to a Microsoft SQL Server 2005 table.The primary key of this table is the CatName column. In the FormView control you write thefollowing code. (The line numbers is included for reference purposes)
1 <tr>
2 <td align="right"><b>Category:</b></td>
3 <td><asp:DropDownList ID="DropDownList1" Runat="server"
4
5 DataSourceID="ds1" DataTextField="CatName" DataValueField="CatID" />
9 </td>
10 </tr> 
You receive an instruction frommanagement to make sure that modifications made to the CatIDfield can be written to the database. You thus need to determine the appropriate code fragmentthat needs to be added at line 4. 
What should you identify?()

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

热门试题

单项选择题Certkiller.com has hired you as a system administrator for their network. You make use of .NETFramework v3.5 in order to create a Microsoft ASP.NET application.  You decide to create a Web form. You add the subsequent code fragment to the Web form.<asp:Repeater ID= rept1  runat= server  DataSourceID= ds1  ItemDataBound= rept1_b ><ItemTemplate> <asp:Label ID= lblQty  runat= server  Text=’<%# Eval( Qty ) %>’  > < ItemTemplate> < asp:Repeater>  The DataSource control named CKDataSource recovers the Quantity column values from a tablenamed Orders. You the create the rptData_ItemDataBound event handler using the subsequentcode fragment. (The line numbers is included for reference purposes)  1 protected void rept_b(object sender, RepeaterItemEventArgs e) 2 { 3 4 if(CKLbl != null) 5 if(int.Parse(CKLbl.Text) < 10)6 CKLbl.ForeColor = Color.Red;7 }  You receive an instruction from management to recover a reference to the lblQuantity Labelcontrol into a variable. The variable is named CKLbl.  What should you do?()

A.Your best option would be to insert Label CKLbl = e.Item.FindControl("lblQty") as Label at line4.
B.Your best option would be to insert Label CKLbl = Page.FindControl("lblQty") as Label at line 4.
C.Your best option would be to insert Label CKLbl = rptData.FindControl("lblQty") as Label at line4.
D.Your best option would be to insert Label CKLbl = e.Item.Parent.FindControl("lblQty") as Labelat line 4

单项选择题You are employed as a system administrator at Certkiller.com. You are in the process of creatingan ASP.NET application using Microsoft .NET Framework v3.5.  You decide to create a JavaScript file named DataScript.js. The following code segment waswritten to create this file:functiondivide(x, y) { if (y == 0) { var errorMsg = Messages.DivideByZero; alert(errorMsg);return null; } returnx y; }  The DataScript.js file is inserted as a resource in a Class Library project. The namespace for thisproject is Data.Resources. The JavaScript Messages object is used by the JavaScript function inorder to retrieve messages from a resource file. This resource file is named TestMsgResources.resx. In the ASP.NET application you add an AJAX Web form as well as referencing the Class Library. Thereafter an ASP.NET AJAX ScriptReference element is added tothe AJAX Web form.  You receive an instruction from management to make sure that the JavaScript function is able toaccess the error messages defined in the resource file. You should thus determine the appropriatecode segment that should be added to the AssemblyInfo.vb file.  What should you do?()

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