单项选择题
You are employed as the senior administrator at Certkiller.com. You make use of Microsoft .NETFramework v3.5 to create a Microsoft ASP.NET application.
You make use of ASP.NET AJAX create a Web form. The code fragment below exists in the Webfrom. (The line numbers is included for reference purposes)
01 <script type="text/javascript">
02
03 Sys.Application.add_init(initComponents);
04
05 function initComponents() {0607 }
08
09 </script>
10
11 <asp:ScriptManager ID="ScriptManager1"
12 runat="server" />
13 <asp:TextBox runat="server" ID="CKTextBoxA" />
You make use of the initComponents function to create and start a user behavior. This userbehavior is named CKBehavior. You have to make sure that CKBehavior is attached to
CKTextBoxA. You should determine the appropriate code segment you need to add in line 6 toaccomplish this.
What should you identify?()
A.Your best option would be to insert Sys.Component.create(CKBehavior, $get('CKTextBoxA'),null, null, null)
B.Your best option would be to insert Sys.Component.create(CKBehavior, 'CKTextBoxA', null,null, null)
C.Your best option would be to insert $create(CKBehavior, null, null, null, $get('CKTextBoxA'))
D.Your best option would be to insert $create(CKBehavior, null, null, null, 'CKTextBoxA')
相关考题
-
单项选择题
Certkiller.com has employed you as a Web Application Developer. The previous administratorcreated a Microsoft ASP.NET Web application using Microsoft .NET Framework v3.5. You decide to add an AJAX enabled Web form to this application. The application is configured torun on a server named CERTKILLER-SR01. (The line numbers is included for referencepurposes) 01 <asp:ScriptManager ID="scrMgr" runat="server" /> 02 <asp:UpdatePanel ID="updPanel" runat="server" 03 UpdateMode="Conditional"> 04 <ContentTemplate> 05 <asp:Label ID="KinglblTime" runat="server" /> 06 <asp:UpdatePanel ID="updInnerPanel" 07 runat="server" UpdateMode="Conditional"> 08 <ContentTemplate> 09 <asp:Timer ID="tmrTimer" runat="server" 10 Interval="1000" 11 OnTick="tmrTimer_Tick" /> 12 </ContentTemplate> 13 14 </asp:UpdatePanel> 15 </ContentTemplate> 16 17 </asp:UpdatePanel> In the application the tmrTimer_Tick event handler is used to set the Text property of the KinglblTime Label control to the present time of CERTKILLER-SR01. You receive an instructionfrom management to make sure that the lblTime Label control is updated properly by the tmrTimerTimer control. You thus need to determine the appropriate UpdatePanel control that has to beconfigured. What should you do?()
A.A
B.B
C.C
D.D -
多项选择题
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. In order toimplement partial rendering on a page you add the following markup: <asp:ScriptManager ID="_scriptManager" runat="server"/> <asp:UpdatePanel ID="updatePanel1" runat="server"> <ContentTemplate> <asp:Label ID="label1" runat="server"/> <asp:Button ID="CKupdateButton" runat="server" Text="Update"/> </ContentTemplate> </asp:UpdatePanel> <asp:UpdatePanel ID="updatePanel2" runat="server"> <ContentTemplate> <asp:Label ID="label2" runat="server"/> </ContentTemplate> <Triggers> <asp:AsyncPostBackTrigger ControlID="CKupdateButton"/> </Triggers> </asp:UpdatePanel> You only want the content in the updatePanel2 control to be updated when the Button controlnamed _btnUpd is clicked. You need to configure the page to accomplish this goal of thecompany. What should you do?()
A.You should consider replacing AsyncPostBackTrigger with PostBackTrigger.
B.You should consider setting the UpdateMode property of updatePanel2 to Conditional.
C.You should consider setting the ChildrenAsTriggers property of updatePanel1 to false.
D.You should consider setting the ChildrenAsTriggers property of updatePanel2 to false.
E.You should consider setting the UpdateMode property of updatePanel1 to Conditional.
F.You should consider setting the UpdateMode property of updatePanel2 to Always. -
单项选择题
You work as a Web Developer at Certkiller.com. You are in the process of creating a Webapplication using Microsoft ASP.NET 3.5. An exception management framework is not used in the Web application. You need to ensure thatthe application log the unhandled exceptions automatically to the event log. You need to configurethe Web.config file to accomplish this. Identify the configuration that will assist you in thisscenario?()
A.You should consider using the <healthMonitoring enabled="true"/> configuration.
B.You should consider using the <deployment retail="true"/> configuration.
C.You should consider using the <customErrors mode="On"/> configuration.
D.You should consider using the <trace enabled="true"/> configuration.
