Which code segments should you include in Target 1, Target 2 and Target 3 to implement the ExecuteResult method?

HOTSPOT

You are developing an ASP.NET MVC web application that enables users to open Microsoft Excel files.

The current implementation of the ExcelResult class is as follows.

You need to enable users to open Excel files.

You have the following code:

Which code segments should you include in Target 1, Target 2 and Target 3 to implement the ExecuteResult method? To answer, select the appropriate option or options in the answer area.

Answer:

Explanation:

Target 1:

Name: AcceptTypes

Synopsis: stringArray = Request.AcceptTypes

Return s a String array containing the Multipurpose Internet Mail Extension (MIME) types accepted by the client. You can use this property to determine whether a client can accept certain response types, including application types such as Word or Excel, which are supported only by Internet Explorer.

Target 2, Target 3:

Response.AddHeader("content-disposition", "attachment; filename=MyExcelFile.xls"); Response.ContentType = "application/ms-excel";

References:

Latest 70-486 Dumps Valid Version with 255 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>