移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

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

发布日期:2021-03-17

You create a Microsoft ASP.NET application by usin...
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;

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

微软认证考试

护理学专业知识

去刷题