Which code fragment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application consumes an ASMX Web service.
The Web service is hosted at the following URL.
http://www.contoso.com/TemperatureService/Convert.asmx You need to ensure that the client computers can communicate with the service as part of the <system.serviceModel> configuration.
Which code fragment should you use?
Which interface should you implement?
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?
Which code segment should you insert at line 03?
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. (Line numbers are included for reference only.)
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?
Which code fragment should you use?
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?
Which code fragment should you add to the Web.config file?
You create a Microsoft ASP.NET Web application by using the Microsoft .NET Framework version 3.5.
You plan to set up authentication for the Web application. The application must support users from untrusted domains.
You need to ensure that anonymous users cannot access the application.
Which code fragment should you add to the Web.config file?
What additional step should you perform?
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?
Which code segment should you insert at line 02?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a class that implements the IHttpHandler interface. You implement the ProcessRequest method by using the following code segment. (Line numbers are included for reference only.)
01 Public Sub ProcessRequest(ctx As HttpContext)
02
03 End Sub
You need to ensure that the image named Alert.jpg is displayed in the browser when the handler is requested.
Which code segment should you insert at line 02?
Which code fragment should you use?
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 class named MultimediaDownloader that implements the IHttpHandler interface.
Namespace Contoso.Web.UI
Public Class MultimediaDownloader
Implements IHttpHandler
‘…
End Class
End Namespace
The MultimediaDownloader class performs the following tasks:
It returns the content of the multimedia files from the Web server It processes requests for the files that have the .media file extension The .media file extension is mapped to the aspnet_isapi.dll file in Microsoft IIS 6.0.
You need to configure the MultimediaDownloader class in the Web.config file of the application.
Which code fragment should you use?
Which code segment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You create a Web page named enterName.aspx. The Web page contains a TextBox control named txtName. The Web page cross posts to a page named displayName.aspx that contains a Label control named lblName.
You need to ensure that the lblName Label control displays the text that was entered in the txtName TextBox control.
Which code segment should you use?
Which code segment should you use?
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application runs on Microsoft IIS 6.0.
You create a page named oldPage.aspx.
You need to ensure that the following requirements are met when a user attempts to access the page:
The browser diplays the URL of the oldPage.aspx page.
The browser displays the page named newPage.aspx Which code segment should you use?