Click here to Skip to main content
15,885,876 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionMVC 5 Newbie Question - Plugins, Packages? Pin
jkirkerx18-Feb-15 6:45
professionaljkirkerx18-Feb-15 6:45 
Answer[GOT IT] You can modify the Simple Membership Pin
jkirkerx19-Feb-15 11:05
professionaljkirkerx19-Feb-15 11:05 
GeneralRegsiter User, it works but not sure if it's done right for MVC Pin
jkirkerx19-Feb-15 13:32
professionaljkirkerx19-Feb-15 13:32 
QuestionWeb api works on localhost, but not on deployement server Pin
Member 1092967518-Feb-15 5:40
Member 1092967518-Feb-15 5:40 
QuestionUsing SQL Server CONTEXT_INFO feature in ASP.Net + Enterprise Library (v5 & above) Pin
Member 317000018-Feb-15 1:54
Member 317000018-Feb-15 1:54 
QuestionMVC 5, creating a download exe file link Pin
jkirkerx16-Feb-15 11:01
professionaljkirkerx16-Feb-15 11:01 
AnswerRe: MVC 5, creating a download exe file link Pin
Richard Deeming16-Feb-15 11:22
mveRichard Deeming16-Feb-15 11:22 
GeneralOh that's pretty slick Pin
jkirkerx16-Feb-15 11:40
professionaljkirkerx16-Feb-15 11:40 
My knowledge is limited as well here.

I thinks its a FileResult, I wrote this in the last 15 minutes, and it worked, very close to yours. Not sure if it's right or not.

But that's pretty slick in design, A action link on a view, in which the controller action lets you run the a small amount of code to download a file instead of showing another web page.

I have so much to learn here, I like being able to jam out code fast. Not bad considering I'm a VB guy by heart.

Let's see what others say about it. Thanks Richard! Smile | :)

public FileResult StreakwaveReseller2015_DownloadApp()
{

  string filePath = Server.MapPath("~/Downloads/Streakwave/streakwave_1.1.0.784.exe");
  byte[] fileBytes = System.IO.File.ReadAllBytes(filePath);
  return File(fileBytes, System.Net.Mime.MediaTypeNames.Application.Octet, "streakwave_1.1.0.784.exe");

}

GeneralRe: Oh that's pretty slick Pin
Richard Deeming16-Feb-15 12:06
mveRichard Deeming16-Feb-15 12:06 
GeneralRe: Oh that's pretty slick Pin
jkirkerx16-Feb-15 12:56
professionaljkirkerx16-Feb-15 12:56 
GeneralRe: Oh that's pretty slick Pin
Richard Deeming17-Feb-15 3:12
mveRichard Deeming17-Feb-15 3:12 
GeneralRe: Oh that's pretty slick Pin
jkirkerx17-Feb-15 8:01
professionaljkirkerx17-Feb-15 8:01 
QuestionMVC Template Pin
mlaitat16-Feb-15 1:07
mlaitat16-Feb-15 1:07 
AnswerRe: MVC Template Pin
Dave Kreskowiak16-Feb-15 14:31
mveDave Kreskowiak16-Feb-15 14:31 
QuestionWhich is more secure cms in asp.net web development ? Customized cms or Third party cms(DNN,umbraco,etc) Pin
RajeeshMenoth15-Feb-15 20:22
professionalRajeeshMenoth15-Feb-15 20:22 
AnswerRe: Which is more secure cms in asp.net web development ? Customized cms or Third party cms(DNN,umbraco,etc) Pin
Dave Kreskowiak16-Feb-15 14:32
mveDave Kreskowiak16-Feb-15 14:32 
GeneralRe: Which is more secure cms in asp.net web development ? Customized cms or Third party cms(DNN,umbraco,etc) Pin
RajeeshMenoth16-Feb-15 17:03
professionalRajeeshMenoth16-Feb-15 17:03 
GeneralRe: Which is more secure cms in asp.net web development ? Customized cms or Third party cms(DNN,umbraco,etc) Pin
Dave Kreskowiak16-Feb-15 17:59
mveDave Kreskowiak16-Feb-15 17:59 
Questionnavigation method Pin
Member 1145476815-Feb-15 20:14
Member 1145476815-Feb-15 20:14 
AnswerRe: navigation method Pin
Dave Kreskowiak16-Feb-15 14:34
mveDave Kreskowiak16-Feb-15 14:34 
QuestionError code 500 Pin
Member 1101185313-Feb-15 23:50
Member 1101185313-Feb-15 23:50 
AnswerRe: Error code 500 Pin
Afzaal Ahmad Zeeshan14-Feb-15 0:01
professionalAfzaal Ahmad Zeeshan14-Feb-15 0:01 
QuestionDisplay one month's result regardless Pin
samflex13-Feb-15 4:04
samflex13-Feb-15 4:04 
GeneralHow to convert HTMl Div to word Pin
abjchr12-Feb-15 22:33
abjchr12-Feb-15 22:33 
QuestionRe: How to convert HTMl Div to word Pin
Richard MacCutchan12-Feb-15 22:47
mveRichard MacCutchan12-Feb-15 22:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.