当前位置:MCPD(70-562)题库

问题:

[单选]

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

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

为应用程序开发人员上班 Certkiller.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。您正在开发NETFramework2.0系统实用程序的应用程序,并且需要用来编写一些代码,使您可以检查的其他平台编译的程序集。.NET框架。创建新的应用程序域和负荷组件到它。你是确保代码加载到这种情况下可以检查但不是执行所必需的。你知道包含程序集的文件的路径名称,但您不知道程序集的名称。你应该做什么?() 应使用Assembly.ReflectionOnlyLoadFrom方法。 应使用Assembly.LoadFrom方法。 应使用Assembly.ReflectionOnlyLoad方法。 应使用了Assembly.Load方法。 《秃头歌女》的创作者是() 尤奈斯库。 富尔曼诺夫。 辛克莱.路易斯。 萧伯纳。 装配活塞销时,通常先把活塞放在电炉箱中或润滑油中加热至()℃, 20~30。 30~40。 70~80。 190~200。 《招标公告发布暂行办法》属于()。 地方性法规。 部门规章。 行政法规。 地方政府规章。 Your network contains an Active Directory domain. The domain contains a print server named Server1. Server1 runs Windows Server 2008 R2.You need to ensure that users can locate all shared printers on Server1 by using Active Directory. What should you do from Server1?() Run the pubprn.vbs script.。 Run dism.exe.。 Run the Set-ADObject cmdlet.。 Modify the Print Server properties.。

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

参考答案:

  参考解析

本题暂无解析

在线 客服