Click here to Skip to main content
15,886,806 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to pass JavaScript variable to another page? Pin
F-ES Sitecore18-Feb-15 23:40
professionalF-ES Sitecore18-Feb-15 23:40 
AnswerRe: How to pass JavaScript variable to another page? Pin
Member 1143449224-Feb-15 0:10
Member 1143449224-Feb-15 0:10 
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 
I'm trying to figure out how to create a link to download one of my windows apps.

I'm new at this, HTML5, CSS3, MVC and c# all at the same time.
So in my view, I wrote this. If the user is logged in, they can download the file, and vice versus. It seems to work fine, not sure if I did it the right way or not.
<h5>How to get Streakwave Reseller 2015 today</h5>
    <p>
        Simply register an account, so we can get an idea if folks are using it, and click on 
        Installation takes about 30 minutes, including the download of LocalDB, and the <br />
        Currently the program is shareware, or free to use, 
        Current Version is 1.1.0.784
        @{            
            if (User.Identity.Name == "")
            {
                <section id="login" style="text-align: left;">
                    @Html.Partial("_LoginPartial")
                </section>
            }
            else { 
                <section>
                    @Html.ActionLink("Download Streakwave Reseller 2015", "StreakwaveReseller2015_DownloadApp", "Apps")
                </section>
            };
        }        
    </p>    


Now on this part, I'm not sure if I use the controller file, and change the view to code that starts the download. Or if I have to create or use the assigned model to do that. My knowledge learned says use the controller file. So if I use the controller file, then I don't need a view file then?, because there is no view.
public ActionResult StreakwaveReseller2015_DownloadApp()
{
   return View();
}


Or am I completely off the tracks here on this one.
If I am on the right track, I not sure what to write in the controller action result, and point in the right direction would be of great service to me.
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 
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 

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.