多项选择题YouusethefollowingdeclarationtoaddaWebusercontrolnamedTestUserControl.ascxtoanASP.NETpagenamedTestPage.aspx.Youaddthefollowingcodetothecode-behindfileofTestPage.aspx.privatevoidTestMethod(){...}Youdefinethefollowingdelegate.publicdelegatevoidMyEventHandler();YouneedtoaddaneventoftypeMyEventHandlernamedMyEventtoTestUserControl.ascxandattachthepage’sTestMethodmethodtotheevent.Whichtwoactionsshouldyouperform?()
A.Add the following line of code to TestUserControl.ascx.cs. public event MyEventHandler MyEvent;
B.Add the following line of code to TestUserControl.ascx.cs. public MyEventHandler MyEvent;
C.Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration. <uc:TestUserControl ID="testControl" runat="server" OnMyEvent="TestMethod"/>
D.Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration. <uc:TestUserControl ID="testControl" runat="server" MyEvent="TestMethod"/>