题目内容

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form and add the following code fragment: Text=’’ /> The SqlDataSource1 DataSource control retrieves the Quantity column values from a table named Products. You write the following code segment to create the rptData_ItemDataBound event handler: 01 protected void rptData_ItemDataBound(object sender, 02 RepeaterItemEventArgs e) 03 { 04 ► 05 if(lbl != null) 06 if(int.Parse(lbl.Text) < 10) 07 lbl.ForeColor = Color.Red; 08 } You need to retrieve a reference to the lblQuantity Label control into a variable named lbl. Which code segment should you insert at line 04? ()

A. Label lbl = Page.FindControl("lblQuantity") as Label;
B. Label lbl = e.Item.FindControl("lblQuantity") as Label;
C. Label lbl = rptData.FindControl("lblQuantity") as Label;
D. Label lbl = e.Item.Parent.FindControl("lblQuantity") as Label

查看答案
更多问题

BMY型压滤机表示该设备是()。

A. 明流、液压厢式压滤机
B. 暗流、液压厢式压滤机
C. 明流、液压板框压滤机
D. 暗流、液压板框压滤机

金融机构在筹建期间可试办金融业务

A. 正确
B. 错误

Windows的客户端连接到NAS,需要()。

A. 安装客户端软件,需要特别配置网路的属性
B. 无需安装客户端软件,但需要特别配置网路的属性
C. 安装客户端软件,无需特别配置网路的属性
D. 无需安装客户端软件,无需特别配置网路的属性

出车前应做好哪些安全准备工作?

答案查题题库