移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create two user controls named UserCtrlA.ascx and UserCtrlB.ascx. The user controls postback to the server.  You create a new Web page that has the following ASPX code:         To dynamically create the user controls, you write the following code segment for the Web page:  public void LoadControls()  {  if (ViewState["CtrlA"] != null)  {  Control c;  if ((bool)ViewState["CtrlA"] == true)  {  c = LoadControl("UserCtrlA.ascx");  } else {  c = LoadControl("UserCtrlB.ascx");  }   c.ID = "Ctrl";  PlHolder.Controls.Add(c);  }  }   protected void Chk_CheckedChanged(object sender, EventArgs e)  {  ViewState["CtrlA"] = Chk.Checked; PlHolder.Controls.Clear();  LoadControls();  }   You need to ensure that the user control that is displayed meets the following requirements: It is recreated during postback It retains its state.   Which method should you add to the Web page?()

发布日期:2021-03-17

You create a Microsoft ASP.NET application by usin...
A

A

B

B

C

C

D

D

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

微软认证考试

护理学专业知识

去刷题