找考题网-背景图
单项选择题

A.Use the Sys.Debug.fail method. B.Use the Sys.Debug.tr……

You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Frameworkversion 3.5. 
You attach Microsoft Visual Studio 2008 debugger to the Microsoft Internet Explorer instance to debug the JavaScript code in the AJAX application. 
You need to ensure that the application displays the details of the client-side object on the debugger console. 
What should you do?()



A.Use the Sys.Debug.fail method. 
B.Use the Sys.Debug.trace method. 
C.Use the Sys.Debug.assert method. 
D.Use the Sys.Debug.traceDump method.

热门试题

单项选择题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web page to display photos and captions. The caption of each photo in the database can be modified by using the application. You write the following code fragment:   <asp:FormView DataSourceID= ObjectDataSource1  DataKeyNames= PhotoID  runat= server >   <EditItemTemplate>   <asp:TextBox Text=’<%# Bind( Caption ) %>’ runat= server >   <asp:Button Text= Update  CommandName= Update  runat= server >   <asp:Button Text= Cancel  CommandName= Cancel  runat= server >  < EditItemTemplate>  <ItemTemplate>   <asp:Label Text=’<%# Eval( Caption ) %>’ runat= server   >   <asp:Button Text= Edit  CommandName= Edit  runat= server >   < ItemTemplate>   < asp:FormView>    When you access the Web page, the application throws an error.  You need to ensure that the application successfully updates each caption and stores it in the database.  What should you do?()

A.Add the ID attribute to the Label control. 
B.Add the ID attribute to the TextBox control. 
C.Use the Bind function for the Label control instead of the Eval function. 
D.Use the Eval function for the TextBox control instead of the Bind function.