多项选择题
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"/>
多项选择题 YoucreateaWebpagenamedTestPage.aspxandausercontrolnamedTestUserControl.ascx.TestPage.aspxusesTestUserControl.ascxasshowninthefollowinglineofcode.OnTestUserControl.ascx,youneedtoaddaread-onlymembernamedCityNametoreturnthevalue"NewYork".YoualsomustaddcodetoTestPage.aspxtoreadthisvalue.Whichtwoactionsshouldyouperform?()
单项选择题 YoucreateaWebpagenamedTestPage.aspxandausercontrolnamedcontainedinafilenamedTestUserControl.ascx.YouneedtodynamicallyaddTestUserControl.ascxtoTestPage.aspx.Whichcodesegmentshouldyouuse?()
单项选择题 You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code. You need to add an attribute to the Person class to ensure that you can save an instance to session state. Which attribute should you use?()