单项选择题
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 -
单项选择题
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a page that contains the following code fragment: <asp:ListBox ID="lstLanguages" AutoPostBack="true" runat="server" /> You write the following code segment in the code-behind file for the page: void BindData(object sender, EventArgs e) { lstLanguages.DataSource = CultureInfo.GetCultures(CultureTypes.AllCultures); lstLanguages.DataTextField = "EnglishName"; lstLanguages.DataBind(); } You need to ensure that the lstLanguages ListBox control maintains the selection of the user during postback. Which line of code should you insert in the constructor of the page?()
A.this.Init += new EventHandler(BindData);
B.this.PreRender += new EventHandler(BindData);
C.lstLanguages.PreRender += new EventHandler(BindData);
D.lstLanguages.SelectedIndexChanged += new EventHandler(BindData);
