单项选择题
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:
01 public void ProcessRequest(HttpContext ctx) {
02 ►
03 }
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?()
A.A
B.B
C.C
D.D
点击查看答案
相关考题
-
单项选择题
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 : IHttpHandler { // ... } } 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? ()
A.A
B.B
C.C
D.D -
单项选择题
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?()
A.A
B.B
C.C
D.D -
单项选择题
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 displays the URL of the oldPage.aspx page. the browser displays the page named newPage.aspx Which code segment should you use?()
A.A
B.B
C.C
D.D
