This is a migrated thread and some comments may be shown as answers.

Download a file from the menu

0 Answers 42 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Oughs
Top achievements
Rank 1
Oughs asked on 26 Sep 2012, 02:33 PM
Hi,
I'd like to let my visitor download a file directly from the menu but i've no idea how i can code this.
I tried it with WebClient (namespace = System.Web)...

WebClient client = new WebClient();
d.Add().Text(name).HtmlAttributes(
client.DownloadFile(file, name + ".zip")
);

...but without any success. So how can I get a download link in my menu?

No answers yet. Maybe you can help?

Tags
Menu
Asked by
Oughs
Top achievements
Rank 1
Share this question
or