多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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. ’ />   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
正确答案:A
答案解析:
进入题库查看解析

微信扫一扫手机做题