单项选择题

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

相关考题

单项选择题 You are employed as a system administrator at Certkiller.com. You are in the process of creatingan ASP.NET application using Microsoft .NET Framework v3.5.  You decide to create a JavaScript file named DataScript.js. The following code segment waswritten to create this file:functiondivide(x, y) { if (y == 0) { var errorMsg = Messages.DivideByZero; alert(errorMsg);return null; } returnx/y; }  The DataScript.js file is inserted as a resource in a Class Library project. The namespace for thisproject is Data.Resources. The JavaScript Messages object is used by the JavaScript function inorder to retrieve messages from a resource file. This resource file is named TestMsgResources.resx. In the ASP.NET application you add an AJAX Web form as well as referencing the Class Library. Thereafter an ASP.NET AJAX ScriptReference element is added tothe AJAX Web form.  You receive an instruction from management to make sure that the JavaScript function is able toaccess the error messages defined in the resource file. You should thus determine the appropriatecode segment that should be added to the AssemblyInfo.vb file.  What should you do?()

单项选择题 ou are the newly appointed system administrator at Certkiller.com. A former administratorcreated a Microsoft ASP.NET Web application using Microsoft .NET Framework v3.5.  You are responsible for maintaining the Web application. You use the source control repository toacquire the most recent version of the project. As soon as you attempt to compile the project onyour workstation you notice that the assembly reference is missing. To ensure productivity youneed to make sure that you are able to compile the project on your workstation. What should you do?()

单项选择题 You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5.  A third-party assembly contains custom server controls. This assembly does not contain a strongname and it’s not part of the application’s Microsoft Visual Studio 2008 solution. You have to makesure that the other users are able to use the custom controls. You decide to configure theapplications project.  What should you do?()