当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

YouusethefollowingdeclarationtoaddaWebusercontrolnamedTestUserControl.ascxtoanASP.NETpagen


YouusethefollowingdeclarationtoaddaWebusercontrolnamedTestUserControl.ascxtoanASP.NETpagenamedTestPage.aspx.Youaddthefollowingcodetothecode-behindfileofTestPage.aspx.privatevoidTestMethod(){...}Youdefinethefollowingdelegate.publicdelegatevoidMyEventHandler();YouneedtoaddaneventoftypeMyEventHandlernamedMyEventtoTestUserControl.ascxandattachthepage’sTestMethodmethodtotheevent.Whichtwoactionsshouldyouperform?()

A.AddthefollowinglineofcodetoTestUserControl.ascx.cs.publiceventMyEventHandlerMyEvent;

B.AddthefollowinglineofcodetoTestUserControl.ascx.cs.publicMyEventHandlerMyEvent;

C.ReplacetheTestUserControl.ascxreferenceinTestPage.aspxwiththefollowingdeclaration. <uc:TestUserControlID="testControl"runat="server"OnMyEvent="TestMethod"/>

D.ReplacetheTestUserControl.ascxreferenceinTestPage.aspxwiththefollowingdeclaration. <uc:TestUserControlID="testControl"runat="server"MyEvent="TestMethod"/>

参考答案
您可能感兴趣的试题
  • 下面指令执行后 (1)DAW DW 2A05H(2)DAB DB 0FAH (3)MOV AL B