99色精品-9色在线-99色在线-99色视频 国产欧美日产一区二区三区_亚洲精品亚洲人成在线观看_四虎在线精品永久观看_免费一级a一片久久精

單項(xiàng)選擇題

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a composite custom control named MyControl. 
You need to add an instance of the OrderFormData control to the MyControl control. 
Which code segment should you use?()

A.A
B.B
C.C
D.D

題目列表

你可能感興趣的試題

單項(xiàng)選擇題

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:  
<asp:CheckBox ID="Chk" runat="server"    
oncheckedchanged="Chk_CheckedChanged"   
AutoPostBack="true" />  
<asp:PlaceHolder ID="PlHolder" runat="server"></asp:PlaceHolder>  
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?()

A.A
B.B
C.C
D.D

微信掃碼免費(fèi)搜題