单项选择题
You work as a Web Developer at Certkiller.com. You create a Web application using MicrosoftASP.NET 3.5.
The Web application is hosted on a Web farm. The Web farm consists of three Web servers. Youshould configure the Web application for session state in order to meet the following requirements:
* The session state data should not be lost if a server fails.
* The session state should be maintained across browser requests by the same user.
You need to configure the Web.config file to meet these requirements.
What shuld you do?()
B.B
C.C
D.D
相关考题
-
多项选择题
Certkiller.comhashiredyouasasystemadministratorfortheirnetwork.ThepreviousadministratorcreatedaMicrosoftASP.NETWebapplication.Microsoft.NETFrameworkv3.5wasusedtocreatethisapplication.YoudetectanunexpectedincreaseinthevalueoftheApplicationRestartscounterwhilstmonitoringtheapplicationperformancecounters.Youreceiveaninstructionfrommanagementtoidentifythereasonsfortheincrease.Whatshouldyouidentify?()
A.The increase occurred due to changes made to the Web.config file in the system.web sectionfor debugging the application.
B.The increase occurred due to the Microsoft IIS 6.0 host being restarted.
C.The increase occurred due to an additional code fragment that needs recompilation to theASP.NET Web application.
D.The increase occurred due to the Microsoft Windows Server 2003 that hosts the Webapplication being restarted.
E.The increase occurred due to an additional new assembly in the Bin directory of the application.
F.The increase occurred due to HTTP compression being enabled in the Microsoft IIS 6.0manager for the application -
单项选择题
You work as a system administrator at Certkiller.com. You are in the process of creating anASP.NET application using Microsoft .NET Framework v3.5. You receive an instruction from management to create a custom-templated server control. Toensure productivity you need to make sure that the child controls of the newly created servercontrol are identified within the hierarchy of the page. You thus need to identify the interface thatwill accomplish this. What should you do?()
A.You should consider implementing the IRequiresSessionState interface.
B.You should consider implementing the ITemplatable interface.
C.You should consider implementing the IPostBackDataHandler interface.
D.You should consider implementing the INamingContainer interface -
单项选择题
Certkiller.com has hired you as a system administrator for their network. You make use of .NETFramework v3.5 in order to create a Microsoft ASP.NET application. You decide to create a Web form. You add the subsequent code fragment to the Web form.<asp:Repeater ID="rept1" runat="server" DataSourceID="ds1" ItemDataBound="rept1_b"><ItemTemplate> <asp:Label ID="lblQty" runat="server" Text=’<%# Eval("Qty") %>’ /> </ItemTemplate> </asp:Repeater> The DataSource control named CKDataSource recovers the Quantity column values from a tablenamed Orders. You the create the rptData_ItemDataBound event handler using the subsequentcode fragment. (The line numbers is included for reference purposes) 1 protected void rept_b(object sender, RepeaterItemEventArgs e) 2 { 3 4 if(CKLbl != null) 5 if(int.Parse(CKLbl.Text) < 10)6 CKLbl.ForeColor = Color.Red;7 } You receive an instruction from management to recover a reference to the lblQuantity Labelcontrol into a variable. The variable is named CKLbl. What should you do?()
A.Your best option would be to insert Label CKLbl = e.Item.FindControl("lblQty") as Label at line4.
B.Your best option would be to insert Label CKLbl = Page.FindControl("lblQty") as Label at line 4.
C.Your best option would be to insert Label CKLbl = rptData.FindControl("lblQty") as Label at line4.
D.Your best option would be to insert Label CKLbl = e.Item.Parent.FindControl("lblQty") as Labelat line 4
