单项选择题
A.Add the following OnPreRender event handler to the asp:DropDownList
B.Add the following OnPreRender event handler to the asp:DropDownList
C.Add the following event handler to the page code-behind.
D.Add the following event handler to the page code-behind.
多项选择题 You create a custom server control named Task that contains the following code segment. You need to ensure that adding a Task control from the Toolbox creates markup in the following format. Which two actions should you perform?()
多项选择题 YouusethefollowingdeclarationtoaddaWebusercontrolnamedTestUserControl.ascxtoanASP.NETpagenamedTestPage.aspx.Youaddthefollowingcodetothecode-behindfileofTestPage.aspx.privatevoidTestMethod(){...}Youdefinethefollowingdelegate.publicdelegatevoidMyEventHandler();YouneedtoaddaneventoftypeMyEventHandlernamedMyEventtoTestUserControl.ascxandattachthepage’sTestMethodmethodtotheevent.Whichtwoactionsshouldyouperform?()
多项选择题 YoucreateaWebpagenamedTestPage.aspxandausercontrolnamedTestUserControl.ascx.TestPage.aspxusesTestUserControl.ascxasshowninthefollowinglineofcode.OnTestUserControl.ascx,youneedtoaddaread-onlymembernamedCityNametoreturnthevalue"NewYork".YoualsomustaddcodetoTestPage.aspxtoreadthisvalue.Whichtwoactionsshouldyouperform?()