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 | English | Chinese | Japan | Korean | - 96 - Test Information Co., Ltd. All rights reserved. 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 theapplication. Which code fragment should you use? ()
ou are developing an ASP.NET MVC 2 application. You create a view that will be returned by action methods in multiple controllers. You need to place the view in the appropriate folder. To which subfolder within the Views folder should you add the view?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. The application must redirect the original URL to a different ASPX page. You need to ensure that the users cannot view the original URL after the page is executed. You also need to ensure that each page execution requires only one request from the client browser. What should you do? ()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You write the following code fragment. You also add a MultiView control named MultiView1 to the Web page. MultiView1 has three child View controls. You need to ensure that you can select the View controls by using the DropDownList1 DropDownList control. Which code segment should you use?()
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?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. Your application has a user control named UserCtrl.ascx. You write the following code fragment to create a Web page named Default.aspx. You need to dynamically add the UserCtrl.ascx control between the lblHeader and lblFooter Label controls. What should you do? ()
You create an ASP.NET server control in the SampleControl namespace. The control uses a JavaScript file names Refresh.js to implement AJAX functionality.You need to ensre that the JavaScript file is included in the assembly. Which two actions should you perform?()
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5. You create a Web form that contains the following code fragment: You write the following code segment in the code-behind file: 01 protected void Page_Load(object sender, EventArgs e) 02 { 03 DataSet objDS = new DataSet(); 04 SqlDataAdapter objDA = new SqlDataAdapter(objCmd); 05 objDA.Fill(objDS); 06 gridCities.DataSource = objDs; 07 gridCities.DataBind(); 08 Session["ds"] = objDS; 09 } 10 protected void btnSearch_Click(object sender, EventArgs e) 11 { 12 ► 13 } You need to ensure that when the btnSearch Button control is clicked, the records in the gridCities GridView control are filtered by using the value of the txtSearch TextBox. Which code segment you should insert at line 12?()
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?()
You are maintaining a Microsoft ASP.NET Web Application that was created by using the Microsoft .NET Framework version 3.5. You obtain the latest version of the project from the source control repository. You discover that an assembly reference is missing when you attempt to compile the project on your computer.You need to compile the project on your computer. What should you do?()