If Path.GetExtension(fupDocuments.FileName) = ".xls" Then contentType = "application/vnd.ms-excel" ElseIf Path.GetExtension(fupDocuments.FileName) = ".xlsx" Then contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" End If
Response.ContentType = "Application/ms-excel" Response.AddHeader("content-disposition", "attachment; filename=WYCFIS_Excel_Template.xls")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)