Click here to Skip to main content
15,891,375 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to download executable file Pin
fjparisIII23-Feb-10 14:00
fjparisIII23-Feb-10 14:00 
GeneralRe: How to download executable file Pin
Richard Andrew x6423-Feb-10 14:06
professionalRichard Andrew x6423-Feb-10 14:06 
GeneralRe: How to download executable file Pin
fjparisIII23-Feb-10 14:26
fjparisIII23-Feb-10 14:26 
GeneralRe: How to download executable file Pin
Richard Andrew x6423-Feb-10 14:31
professionalRichard Andrew x6423-Feb-10 14:31 
GeneralOff on wrong track Pin
fjparisIII23-Feb-10 15:05
fjparisIII23-Feb-10 15:05 
AnswerRe: How to download executable file Pin
fjparisIII23-Feb-10 13:50
fjparisIII23-Feb-10 13:50 
GeneralRe: How to download executable file Pin
Richard Andrew x6423-Feb-10 14:08
professionalRichard Andrew x6423-Feb-10 14:08 
AnswerRe: How to download executable file Pin
Pete O'Hanlon23-Feb-10 22:20
mvePete O'Hanlon23-Feb-10 22:20 
This is achieved by the use of Mime types and is very easy to do. Consider the following sample ASP.NET page
:<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a href="~/googletoolbar2user.exe" runat="server">Exe</a>
    </div>
    </form>
</body>
</html>
Clicking the link when it's running prompts the browser to display the warning you're after. Have a look at this post[^] to see more information on what you need configuring in IIS. There's no special voodoo, and I'm not surprised that books on ASP.NET don't teach this as it's more about general web development rather than Silverlight/ASP.NET issues.

"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: How to download executable file Pin
fjparisIII24-Feb-10 4:16
fjparisIII24-Feb-10 4:16 
GeneralRe: How to download executable file Pin
Matt Cavanagh24-Feb-10 13:10
Matt Cavanagh24-Feb-10 13:10 
GeneralRe: How to download executable file Pin
fjparisIII24-Feb-10 13:42
fjparisIII24-Feb-10 13:42 
GeneralRe: How to download executable file Pin
Matt Cavanagh24-Feb-10 13:45
Matt Cavanagh24-Feb-10 13:45 
GeneralRe: How to download executable file Pin
fjparisIII24-Feb-10 14:12
fjparisIII24-Feb-10 14:12 
QuestionRIA Services and Silverlight Pin
jonatan_55623-Feb-10 4:36
jonatan_55623-Feb-10 4:36 
QuestionLogin persistence Pin
Etienne_12323-Feb-10 3:10
Etienne_12323-Feb-10 3:10 
QuestionHost a new page [modified] Pin
Yonathan111122-Feb-10 21:29
professionalYonathan111122-Feb-10 21:29 
AnswerRe: Host a new page Pin
ToddHileHoffer24-Feb-10 6:57
ToddHileHoffer24-Feb-10 6:57 
QuestionPrinting nested WPF Custom Controls to XPS (and PDF) Pin
mmsinclair22-Feb-10 5:10
mmsinclair22-Feb-10 5:10 
QuestionHow I get Application_Exit Eventhandler in javascript code Pin
xodeblack22-Feb-10 4:24
xodeblack22-Feb-10 4:24 
AnswerRe: How I get Application_Exit Eventhandler in javascript code Pin
Daniel Vaughan25-Feb-10 7:04
Daniel Vaughan25-Feb-10 7:04 
Questionsilverlight (strange) [modified] Pin
Yonathan111121-Feb-10 21:21
professionalYonathan111121-Feb-10 21:21 
QuestionChildWindow Odd Behaviour Pin
Jammer21-Feb-10 6:36
Jammer21-Feb-10 6:36 
QuestionWPF DataGrid: Clipping on ColumnHeadersPresenter Pin
Mikey_H20-Feb-10 20:52
Mikey_H20-Feb-10 20:52 
QuestionDispose called on Window forms Dynamic controls Pin
Member 336560720-Feb-10 7:06
Member 336560720-Feb-10 7:06 
AnswerRe: Dispose called on Window forms Dynamic controls Pin
Luc Pattyn21-Feb-10 4:53
sitebuilderLuc Pattyn21-Feb-10 4:53 

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.