How should you 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. How should you implement the ExecuteResult method? (To
answer, select the appropriate options in the answer area.)

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. How should you implement the ExecuteResult method? (To
answer, select the appropriate options in the answer area.)

A.
Var canProcess=request.AcceptTypes.Contains(“application/vnd.ms-excel”);

B.
response.addHeader(“content-disposition”,attachment; filename=dl”);

C.
response.ContentType=”application/vnd.ms-excel”;

D.
response.ContentEncoding=new UTF8Encoding

Explanation:



Leave a Reply 1

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