单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application has a Web form file named MovieReviews.aspx.
The MovieReviews.aspx file connects to a LinqDataSource DataSource named LinqDataSource1 that has a primary key named MovieID.
The application has a DetailsView control named DetailsView1. The MovieReviews.aspx file contains the following code fragment:
01 <asp:DetailsView ID="DetailsView1" runat="server"
02 DataSourceID="LinqDataSource1"
03 ►
04 />
05 <Fields>
06 <asp:BoundField DataField="MovieID" HeaderText="MovieID"
07 InsertVisible="False"
08 ReadOnly="True" SortExpression="MovieID" />
09 <asp:BoundField DataField="Title" HeaderText="Title"
10 SortExpression="Title" />
11 <asp:BoundField DataField="Theater" HeaderText="Theater"
12 SortExpression="Theater" />
13 <asp:CommandField ShowDeleteButton="false"
14 ShowEditButton="True" ShowInsertButton="True" />
15 </Fields>
16 </asp:DetailsView>
You need to ensure that the users can insert and update content in the DetailsView1 control. You also need to prevent duplication of the link button controls for the Edit and New operations.
Which code segment should you insert at line 03?()
A.A
B.B
C.C
D.D
相关考题
-
多项选择题
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 Web application by using the Microsoft .NET Framework version 3.5. The application uses ASP.NET AJAX, and you plan to deploy it in a Web farm environment. You need to configure SessionState for the application. Which code fragment should you use?()
A.A
B.B
C.C
D.D -
单项选择题
YouhaveaMicrosoftASP.NETFrameworkversion1.0application.TheapplicationdoesnotuseanyfeaturesthataredeprecatedintheMicrosoft.NETFrameworkversion3.5.TheapplicationrunsonMicrosoftIIS6.0. YouneedtoconfiguretheapplicationtousetheASP.NETFrameworkversion3.5withoutrecompilingtheapplication. Whatshouldyoudo?()
A.Edit the ASP.NET runtime version in IIS 6.0.
B.Edit the System.Web section handler version number in the machine.config file.
C.Add the requiredRuntime configuration element to the Web.config file and set the version attribute to v3.5.
D.Add the supportedRuntime configuration element in the Web.config file and set the version attribute to v3.5.
