当前位置:MCTS(70-515)题库

问题:

[多选] You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx.    You add the following code to the code-behind file of TestPage.aspx.  private void TestMethod(){ ...}You define the following delegate.  public delegate void MyEventHandler();  You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the page’s TestMethod method to the event. Which two actions should you perform?()

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 . D.Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration. <uc:TestUserControl ID="testControl" runat="server" MyEvent="TestMethod"/>
E .

压油泵阀组的作用? 项目按照其性质不同,可以分为()。 基本建设项目和更新改造项目。 生产性项目和非生产性项目。 大型项目和中小型项目。 重点项目和一般项目。 消防给水系统按范围分类,划分为()。 环状管网消防给水系统和枝状管网消防给水系统。 独立消防给水系统和区域(集中)消防给水系统。 室外消防给水系统和室内消防给水系统。 消火栓灭火系统和自动喷水灭火系统。 终止酶反应的方法很多,常用的有 软件评审可以揭露软件中的缺陷然后加以改正。 You use the following declaration to add a Web user control named TestUserControl.ascx to an ASP.NET page named TestPage.aspx.    You add the following code to the code-behind file of TestPage.aspx.  private void TestMethod(){ ...}You define the following delegate.  public delegate void MyEventHandler();  You need to add an event of type MyEventHandler named MyEvent to TestUserControl.ascx and attach the page’s TestMethod method to the event. Which two actions should you perform?()
参考答案:

  参考解析

本题暂无解析

在线 客服

相关内容

相关标签