Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the most elegant workaround for the lack of DefaultFileName in SaveFileDialog in Silverlight?

The SaveFileDialog in Silverlight lacks a DefaultFileName property, resulting in the user having to enter the file name manually with every file download from a Silverlight application.

This is very annoying and there's a lot of criticism about this, see the Silverlight forum.

My question is: what is the most elegant way to get around this?

like image 210
Roy Avatar asked Nov 06 '22 11:11

Roy


1 Answers

Prepare the download and let aspx handle the download for you:

http://strugglesofacoder.blogspot.com/2011/03/alternative-to-saving-file-in.html

like image 102
Luc Bos Avatar answered Jan 03 '23 15:01

Luc Bos