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

Certkiller.com has hired&en


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?()

  • AYour best option would be to insert Label CKLbl = e.Item.FindControl("lblQty") as Label at line4.
  • BYour best option would be to insert Label CKLbl = Page.FindControl("lblQty") as Label at line 4.
  • CYour best option would be to insert Label CKLbl = rptData.FindControl("lblQty") as Label at line4.
  • DYour best option would be to insert Label CKLbl = e.Item.Parent.FindControl("lblQty") as Labelat line 4
参考答案
参考解析:
分类:MCPD(70-562)题库
相关推荐

1、Certkiller.com has hired&#

Certkiller.com&#8194;has&#8194;hired&#8194;you&#8194;as&#8194;a&#8194;system&#8194;administrator&#8194;for&#8194;their&#8194;network.&#8194;The&#8194;previousadminis...

2、Certkiller.com has hired&en

Certkiller.com&ensp;has&ensp;hired&ensp;you&ensp;as&ensp;a&ensp;network&ensp;administrator&ensp;for&ensp;their&ensp;network.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;...

3、Certkiller.com has employed

Certkiller.com&ensp;has&ensp;employed&ensp;you&ensp;as&ensp;a&ensp;Web&ensp;Application&ensp;Developer.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;process&ensp;ofcreati...

4、表达式10>5&&6%3的值是()

表达式10>5&&6%3的值是()A-1B非零值C0D1

5、Certkiller.com has employed

Certkiller.com&ensp;has&ensp;employed&ensp;you&ensp;as&ensp;a&ensp;Web&ensp;Application&ensp;Developer.&ensp;You&ensp;are&ensp;in&ensp;the&ensp;process&ensp;ofcreati...

6、Certkiller.com has installe

Certkiller.com&ensp;has&ensp;installed&ensp;a&ensp;server.&ensp;You&ensp;are&ensp;assigned&ensp;to&ensp;install&ensp;and&ensp;run&ensp;an&ensp;instance&ensp;of&ensp;...