單項(xiàng)選擇題

You are implementing an ASP.NET application that will use session state in out-of-proc mode. You add the following code.

You need to add an attribute to the Person class to ensure that you can save an instance to session state. 
Which attribute should you use?()

A.Bindable
B.DataObject
C.Serializable
D.DataContract

題目列表

你可能感興趣的試題

單項(xiàng)選擇題

You are creating an ASP.NET Web site. 
The site has a master page named Custom.master. 
The code-behind file for Custom.master contains the following code segment. 
You create a new ASP.NET page and specify Custom.master as its master page. You add a Label control named lblRegion to the new page. 
You need to display the value of the master page’s Region property in lblRegion. What should you do? ()

A.Add the following code segment to the Page_Load method of the page code-behind file. CustomMaster custom = this.Parent as CustomMaster; lblRegion.Text = custom.Region;
B.Add the following code segment to the Page_Load method of the page code-behind file. CustomMaster custom = this.Master as CustomMaster; lblRegion.Text = custom.Region;
C.Add the following code segment to the Page_Load method of the Custom.Master.cs code-behind file. Label lblRegion = Page.FindControl("lblRegion") as Label; lblRegion.Text = this.Region;
D.Add the following code segment to the Page_Load method of the Custom.Master.cs code-behind file. Label lblRegion = Master.FindControl("lblRegion") as Label; lblRegion.Text = this.Region;

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