單項(xiàng)選擇題

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. 
You write the following code segment to create a client-script function. (Line numbers are included for 
| English | Chinese | Japan | Korean | - 144 - Test Information Co., Ltd. All rights reserved. reference only.) 
01 function updateLabelControl(labelId, newText) { 
02 var label = $find(labelId); 
03 label.innerHTML = newText;
04 } 
The client script function uses ASP.NET AJAX and updates the text of any Label control in the Web form. 
When you test the client script function, you discover that the Label controls are not updated. You receive the following JavaScript error message in the browser: "’null’ is null or not an object." You need to resolve the error. 
What should you do?()

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

題目列表

你可能感興趣的試題

單項(xiàng)選擇題

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. 
You add the following code fragment to an AJAX-enabled Web form. (Line numbers are included for reference only.) 
01 <asp:ScriptManager ID="scrMgr" runat="server" /> 
02 <asp:UpdatePanel ID="updPanel" runat="server" 
03 UpdateMode="Conditional"> 
04 <ContentTemplate> 
05 <asp:Label ID="lblTime" runat="server" /> 
06 <asp:UpdatePanel ID="updInnerPanel" 
07 runat="server" UpdateMode="Conditional"> 
08 <ContentTemplate> 
| English | Chinese | Japan | Korean | - 143 - Test Information Co., Ltd. All rights reserved. 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> 
The tmrTimer_Tick event handler sets the Text property of the lblTime Label control to the current time of the server. 
You need to configure the appropriate UpdatePanel control to ensure that the lblTime Label Control is properly updated by the tmrTimer Timer control.
What should you do?()

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

單項(xiàng)選擇題

You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5. 
You add the following code fragment to an AJAX-enabled Web form. (Line numbers are included for reference only.) 
01 <asp:ScriptManager ID="scrMgr" runat="server" /> 
02 <asp:UpdatePanel ID="updPanel" runat="server" 
03 UpdateMode="Conditional"> 
04 <ContentTemplate> 
05 <asp:Label ID="lblTime" 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> 
The tmrTimer_Tick event handler sets the Text property of the lblTime Label control to the current time of 
| English | Chinese | Japan | Korean | - 142 - Test Information Co., Ltd. All rights reserved. the server. 
You need to configure the appropriate UpdatePanel control to ensure that the lblTime Label Control is 
properly updated by the tmrTimer Timer control. 
What should you do?()

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

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