单选题You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library.  You write the following code segment for the SharedContr

题目
单选题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library.  You write the following code segment for the SharedControl control: 01 protected override void OnInit(EventArgs e)   02 {   03   base.OnInit(e);   04 ►  05 }    All the master pages in the ASP.NET application contain the following directive.     You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page.  Which code segment should you insert at line 04?()
A

Page.RegisterRequiresPostBack(this); 

B

Page.RegisterRequiresControlState(this); 

C

Page.UnregisterRequiresControlState(this); 

D

Page.RegisterStartupScript(SharedControl,server);


相似考题

4. You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.  You deploy the application on a Microsoft IIS 6.0 Web server. The server runs on a worker process isolation mode, and it hosts the .NET Framework version 1.1 Web applications. When you attempt to browse the application, the following error message is received:  "It is not possible to run different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process."    You need to ensure that the following requirements are met: all the applications run on the server  all the applications remain in process isolation mode all the applications do not change their configuration.   Which two actions should you perform?()A、Create a new application pool and add the new application to the pool. B、Configure the IIS 6.0 to run the WWW service in the IIS 5.0 isolation mode. C、Configure the new application to use the .NET Framework version 2.0 in the IIS 6.0 Manager. D、Set autoConfig="false" on the <processModel> property in the machine.config file. E、Disable the Recycle worker processes option in the Application Pool Properties dialog box.

更多“You create a Microsoft ASP.NET application by using the Micr”相关问题
  • 第1题:

    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.  ’ runat="server"/>  | English | Chinese | Japan | Korean | - 124 - Test Information Co., Ltd. All rights reserved. ’ runat="server" />      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.

    正确答案:B

  • 第2题:

    You work as a Web Developer at Certkiller.com. You create a Web application using MicrosoftASP.NET 3.5.  Certkiller.com hosts the application in Microsoft Internet Information Services 7.0. You attempt tobrowse the application and receive the following error message:  Service Unavailable    HTTP Error 503. The service is unavailable.   You check and discover that you are able to browse successfully to other application that formspart of the same IIS Web site. The hosted applications on the network make use of ASP.NET 3.5.There are not previous versions of ASP.NET is installed. You need to resolve this error as soon aspossible.  What should you do?()

    • A、You should run the ServiceModel Metadata Utility tool (Svcutil.exe).
    • B、You should change the pipeline mode associated with the application pool that hosts theapplication.
    • C、You should run the ASP.NET Registration Tool (Aspnet_regiis.exe).
    • D、You should make sure that the application pool that hosts the application is initiated.

    正确答案:D

  • 第3题:

    You work as an ASP.NET Web Application Developer for SomeCompany.  The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. You create a Web page in the application. The Web page will get large sets of data from a data source.  You add a DataPager control to the page. You are required to display navigation controls that enable you to create a custom paging Ul for the DataPager control. What will you do?()

    • A、Use NextPreviousPagerField.
    • B、Use NumericPagerField.
    • C、Use PreviousPagerField.
    • D、Use NextPagerField.
    • E、Use TemplatePagerField.

    正确答案:E

  • 第4题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You plan to deploy the application to a test server.  You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application.  Which code fragment should you add to the Web.config file?()
    A

    <compilation debug=true> 

    B

    <compilation debug=false> 

    C

    <compilation debug=true batch=true> 

    D

    <compilation debug=false batch=false>


    正确答案: B
    解析: 暂无解析

  • 第5题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom Web user control named SharedControl. The control will be compiled as a library.  You write the following code segment for the SharedControl control: 01 protected override void OnInit(EventArgs e)   02 {   03   base.OnInit(e);   04 ►  05 }    All the master pages in the ASP.NET application contain the following directive.     You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page.  Which code segment should you insert at line 04?()
    A

    Page.RegisterRequiresPostBack(this); 

    B

    Page.RegisterRequiresControlState(this); 

    C

    Page.UnregisterRequiresControlState(this); 

    D

    Page.RegisterStartupScript(SharedControl,server);


    正确答案: A
    解析: 暂无解析

  • 第6题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You host the application on a server named ContosoTest that runs Microsoft IIS 6.0. You set up remote  | English | Chinese | Japan | Korean | - 127 - Test Information Co., Ltd. All rights reserved. debugging on the ContosoTest server.  You need to debug the application remotely from another computer named ContosoDev. What should you do?()
    A

    Attach Microsoft Visual Studio.NET to the w3wp.exe process.

    B

    Attach Microsoft Visual Studio.NET to the inetinfo.exe process.

    C

    Attach Microsoft Visual Studio.NET to the Msvsmon.exe process.

    D

    Attach Microsoft Visual Studio.NET to the WebDev.WebServer.exe process.


    正确答案: D
    解析: 暂无解析

  • 第7题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You host the application on a server named ContosoTest that runs Microsoft IIS 6.0. You set up remote debugging on the ContosoTest server.  You need to debug the application remotely from another computer named ContosoDev. What should you do? ()
    A

    Attach Microsoft Visual Studio.NET to the w3wp.exe process.

    B

    Attach Microsoft Visual Studio.NET to the inetinfo.exe process.

    C

    Attach Microsoft Visual Studio.NET to the Msvsmon.exe process.

    D

    Attach Microsoft Visual Studio.NET to the WebDev.WebServer.exe process.


    正确答案: A
    解析: 暂无解析

  • 第8题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a custom-templated server control.  | English | Chinese | Japan | Korean | - 112 - Test Information Co., Ltd. All rights reserved. You need to ensure that the child controls of the server control are uniquely identified within thecontrol hierarchy of the page.  Which interface should you implement? ()
    A

    the ITemplatable interface

    B

    the INamingContainer interface

    C

    the IRequiresSessionState interface

    D

    the IPostBackDataHandler interface


    正确答案: B
    解析: 暂无解析

  • 第9题:

    单选题
    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:         ’ runat="server"/>             ’ runat="server" />             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.


    正确答案: C
    解析: 暂无解析

  • 第10题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  The application resides on a server named ContosoTest that runs Microsoft IIS 5.0.  You use a computer named ContosoDev to log on to the Contoso.com domain with an account named  ContosoUser.  The ContosoTest and ContosoDev servers are members of the Contoso.com domain. You need to set up the appropriate permission for remote debugging.  What should you do?()
    A

    Set the Remote Debugging Monitor to use Windows Authentication.

    B

    Add the ContosoUser account to the domain Administrators group.

    C

    Add the ContosoUser account to the local Administrators group on the ContosoTest server.

    D

    Change the ASP.NET worker process on the ContosoTest server to run as the local Administrator account.


    正确答案: D
    解析: 暂无解析

  • 第11题:

    单选题
    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.


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a custom-templated server control.  You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page.  Which interface should you implement?()
    A

    the ITemplatable interface 

    B

    the INamingContainer interface 

    C

    the IRequiresSessionState interface

    D

    the IPostBackDataHandler interface


    正确答案: C
    解析: 暂无解析

  • 第13题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  When you access the application in a Web browser, you receive the following error message: "Service Unavailable".  You need to access the application successfully.  What should you do? ()

    • A、Start Microsoft IIS 6.0.
    • B、Start the Application pool.
    • C、Set the .NET Framework version.
    • D、Add the Web.config file for the application.

    正确答案:B

  • 第14题:

    You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application. The database on the Microsoft SQL Server 2005 database has two tables that are displayed by using two SqlConnection objects in two different GridView controls. You want the tables to be displayed at the same time with the use a single SqlConnection object.   What should you do?()

    • A、 Create a bound connection by using the sp_getbindtoken and the sp_bindsession stored procedures.
    • B、 Enable Multiple Active Result Sets (MARS) in the connection string of the application. 
    • C、 Create an exception handler for the connection-busy exception that is thrown on using a single SqlConnection object.
    • D、 Run the two SqlDataReader objects by using a single SqlCommand object.

    正确答案:B

  • 第15题:

    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a custom-templated server control.  You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page.  Which interface should you implement?()

    • A、the ITemplatable interface
    • B、the INamingContainer interface
    • C、the IRequiresSessionState interface
    • D、the IPostBackDataHandler interface

    正确答案:B

  • 第16题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form in the application by using the following code fragment:   01     02 protected void Button_Handler(object sender, EventArgs e)   03 {   04   // some long-processing operation.  05 }   06    07 
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: A
    解析: 暂无解析

  • 第17题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a custom Web user control named SharedControl. The control will be compiled as a library.  You write the following code segment for the SharedControl control. (Line numbers are included for reference only.)  01 Protected Overloads Overrides Sub OnInit(ByVal e As EventArgs)  02 MyBase.OnInit(e)  03  04 End Sub  All the master pages in the ASP.NET application contain the following directive.    You need to ensure that the state of the SharedControl control can persist on the pages that reference a master page.  Which code segment should you insert at line 03?()
    A

    Page.RegisterRequiresPostBack(Me)

    B

    Page.RegisterRequiresControlState(Me)

    C

    Page.UnregisterRequiresControlState(Me)

    D

    Page.RegisterStartupScript(SharedControl, server)


    正确答案: D
    解析: 暂无解析

  • 第18题:

    单选题
    You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.  You use Windows Authentication for the application. You set up NTFS file system permissions for the Sales group to access a particular file. You discover that all the users are able to access the file.  You need to ensure that only the Sales group users can access the file. What additional step should you perform?()
    A

    Remove the rights from the ASP.NET user to the file. 

    B

    Remove the rights from the application pool identity to the file. 

    C

    Add the <identity impersonate=true/> section to the Web.config file. 

    D

    Add the <authentication mode=[None]> section to the Web.config file.


    正确答案: B
    解析: 暂无解析

  • 第19题:

    单选题
    You create a Microsoft ASP.NET AJAX application by using the Microsoft .NET Framework version 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.


    正确答案: D
    解析: 暂无解析

  • 第20题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.  You create a custom-templated server control.  You need to ensure that the child controls of the server control are uniquely identified within the control hierarchy of the page.  Which interface should you implement?()
    A

    the ITemplatable interface

    B

    the INamingContainer interface

    C

    the IRequiresSessionState interface

    D

    the IPostBackDataHandler interface


    正确答案: A
    解析: 暂无解析

  • 第21题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form in the application by using the following code fragment:   01     02 protected void Button_Handler(object sender, EventArgs e)   03 {   04   // some long-processing operation.  05 }   06    07 
    A

    A

    B

    B

    C

    C

    D

    D


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application contains a DataSourceControl named CategoriesDataSource that is bound to a Microsoft SQL Server 2005 table. The CategoryName column is the primary key of the table. You write the following code fragment in a FormView control:   01    02   Category:   03      09      10     You need to ensure that the changes made to the CategoryID field can be written to the database.  Which code fragment should you insert at line 04?()
    A

    SelectedValue='<%# Eval(CategoryID) %>' 

    B

    SelectedValue='<%# Bind(CategoryID) %>' 

    C

    SelectedValue='<%# Eval(CategoryName) %>' 

    D

    SelectedValue='<%# Bind(CategoryName) %>'


    正确答案: B
    解析: 暂无解析

  • 第23题:

    多选题
    You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.  When you review the application performance counters, you discover that there is an unexpected increase in the value of the Application Restarts counter. You need to identify the reasons for this increase.  What are three possible reasons that could cause this increase?()
    A

    Restart of the Microsoft IIS 6.0 host.

    B

    Restart of the Microsoft Windows Server 2003 that hosts the Web application.

    C

    Addition of a new assembly in the Bin directory of the application.

    D

    Addition of a code segment that requires recompilation to the ASP.NET Web application.

    E

    Enabling of HTTP compression in the Microsoft IIS 6.0 manager for the application.

    F

    Modification to the Web.config file in the <system.web> section for debugging the application.


    正确答案: E,F
    解析: 暂无解析