可学答题网 > 问答 > MCTS(70-515)题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

You use the followin


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?()

  • AAdd the following line of code to TestUserControl.ascx.cs. public event MyEventHandler MyEvent;
  • BAdd the following line of code to TestUserControl.ascx.cs. public MyEventHandler MyEvent;
  • CReplace the TestUserControl.ascx reference in TestPage.aspx with the following declaration. <uc:TestUserControl ID="testControl" runat="server" OnMyEvent="TestMethod"/>
  • DD.Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration. <uc:TestUserControl ID="testControl" runat="server" MyEvent="TestMethod"/>
  • E
参考答案
参考解析:
分类:MCTS(70-515)题库
相关推荐

1、You are using Resour

You&#8194;are&#8194;using&#8194;Resource&#8194;Manager&#8194;to&#8194;manage&#8194;system&#8194;resources.&#8194;While&#8194;creating&#8194;a&#8194;new&#8194;databas...

2、You are using window

You&#8194;are&#8194;using&#8194;windows&#8194;installer&#8194;to&#8194;deploy&#8194;an&#8194;application&#8194;to&#8194;750&#8194;Windows&#8194;2000&#8194;Profession...

3、You are using window

You&#8194;are&#8194;using&#8194;windows&#8194;installer&#8194;to&#8194;deploy&#8194;an&#8194;application&#8194;to&#8194;750&#8194;Windows&#8194;2000&#8194;Profession...

4、You are using Oracle

You&#8194;are&#8194;using&#8194;Oracle&#8194;Database&#8194;10g.&#8194;You&#8194;performed&#8194;an&#8194;incomplete&#8194;recovery&#8194;of&#8194;your&#8194;databas...

5、You are using the

You&#8194;are&#8194;using&#8194;the&#8194;backup&#8194;scheduler&#8194;in&#8194;Enterprise&#8194;Manager&#8194;(EM)&#8194;to&#8194;schedule&#8194;a&#8194;backup&#8...

6、What would the amps be at 240 volts wi

What would the amps be at 240 volts with an 8 ohm resistance?()A32~5 ampsB25 ampsC1~5 ampsD30 am