Certkiller.comhashiredyouasasystemadministrator&

Certkiller.comhashiredyouasasystemadministratorfortheirnetwork.Youmakeuseof.NETFrameworkv3.5inordertocreateaMicrosoftASP.NETapplication. YoudecidetocreateaWebform.YouaddthesubsequentcodefragmenttotheWebform.<asp:RepeaterID="rept1"runat="server"DataSourceID="ds1"ItemDataBound="rept1_b"><ItemTemplate> <asp:LabelID="lblQty"runat="server"Text=’<%Eval("Qty")%>’/> </ItemTemplate> </asp:Repeater> TheDataSourcecontrolnamedCKDataSourcerecoverstheQuantitycolumnvaluesfromatablenamedOrders.YouthecreatetherptData_ItemDataBoundeventhandlerusingthesubsequentcodefragment.(Thelinenumbersisincludedforreferencepurposes) 1protectedvoidrept_b(objectsender,RepeaterItemEventArgse) 2{ 3 4if(CKLbl!=null) 5if(int.Parse(CKLbl.Text)<10)6CKLbl.ForeColor=Color.Red;7} YoureceiveaninstructionfrommanagementtorecoverareferencetothelblQuantityLabelcontrolintoavariable.ThevariableisnamedCKLbl. Whatshouldyoudo?()

时间:2023-09-14 16:17:30

相似题目