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

You create a Microsoft


You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a custom Web user control named SharedControl. The control will be compiled as a library.  You write the following code segment for the SharedControl control. (Line numbers are included for reference only.)  01 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs)  02 MyBase.OnInit(e)  03  04 End Sub  All the master pages in the ASP.NET application contain the following directive.  <%@ Master Language="VB" EnableViewState="false" %>  You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page.  Which code segment should you insert at line 03?()

  • APage.RegisterRequiresPostBack(Me)
  • BPage.RegisterRequiresControlState(Me)
  • CPage.UnregisterRequiresControlState(Me)
  • DPage.RegisterStartupScript("SharedControl", "server")
参考答案
参考解析:
分类:MCPD(70-562)题库