试题详情
- 单项选择题 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: 01 protected override void OnInit(EventArgs e) 02 { 03 base.OnInit(e); 04 ► 05 } All the master pages in the ASP.NET application contain the following directive. <%@ Master Language="C#" 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 04?()
A、Page.RegisterRequiresPostBack(this);
B、Page.RegisterRequiresControlState(this);
C、Page.UnregisterRequiresControlState(this);
D、Page.RegisterStartupScript("SharedControl","server");
- B
关注下方微信公众号,在线模考后查看
热门试题
- You have a windows s
- Youhaveastandalonese
- You have
- You have a Web serv
- Your network&e
- 默认情况下,在 Microsoft Wi
- You create&ensp
- You have
- You are the network
- You are t
- 你是Alpine Ski
- You are d
- 一个用户想在他的PC机上安装Window
- 你有一台名为Computer1的运行Wi
- You are developing
- You have
- 您需要生成一个报表,用于形成语言代码代码
- Your network&e
- You are th
- You are t