试题详情
- 单项选择题 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.
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. (Line numbers are included for reference only.) 01 Protected Sub rptData_ItemDataBound(ByVal sender As Object, _ 02 ByVal e As RepeaterItemEventArgs) 03 04 If lbl IsNot Nothing Then 05 If Integer.Parse(lbl.Text) < 10 Then 06 lbl.ForeColor = Color.Red 07 End If 08 End If 09 End Sub You need to retrieve a reference to the lblQuantity Label control into a variable named lbl. Which code segment should you insert at line 03?()
A、
B、
C、
D、
- B
关注下方微信公众号,在线模考后查看
热门试题
- You designQ
- You have
- 你是TestKing网站的域管理员,远程
- You create a Web ap
- 您的计算机不支持 Micro
- You work a
- Your company&e
- Certkiller has
- Certkiller.COM有一组顾问。
- 您需要建立一个名为MyAssembly动
- Alan是一个网络管理员。他先前下载了更
- You are the network
- 您是公司的网络管理员。公司网络由一个Ac
- You are the network
- You are p
- Your network&e
- 您管理着一台运行 Windo
- You have a file serv
- You work
- You are d