You use the following declaration to add a Web use...
多选题

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

发布日期:2020-04-10

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.

D.Replace the TestUserControl.ascx reference in TestPage.aspx with the following declaration.

热门试题

热门资讯

    暂无相关推荐~

分享给好友

分享到朋友圈

取消

使用浏览器的分享功能,把这篇文章分享出去

确定