Click here to Skip to main content
15,922,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello All,

I want to download different formats file using silverlight 4 web application. I am not found any code for this till now. if you have any idea about this please help.

I want this download look similar like normal ASP.net project download shows.

Means a download window asking for download location for a file.

thanks.
Posted

Have a look at the save file dialog[^] in Silverlight.
I've provided one link - if you search on the internet, you should find some more informaiton.
 
Share this answer
 
Thanks.

But this is not working.
Actually i add a combobox in silverlight panel and enter all formates in that.

I get a byte array from wcf service.

Now i am going to save that.

In this case there is a error.

Error string: "Dialogs must be user-initiated."

This error appear on this line "bool? dialogResult = this.dialog.ShowDialog();"
 
Share this answer
 
Well Now I find the solution.

I found that if there is a button then it works otherwise not so i make it possible in creating required function.

This is working only for button. so all codes are working and problem is related to execution of this


Thanks for help.

If you find anything more please suggest.

Thanks again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900