文件从silverlight下载 [英] File Download from silverlight

查看:97
本文介绍了文件从silverlight下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


推荐答案

你好,

你想将服务器的字符串数据串流到clinet?您可以使用WebCliet.DownloadStringAsync方法,该方法将使用您的服务器端功能在那里制作CSV并使用CSV字符串进行响应...您在业务逻辑和技术的服务器端中间有什么?如果是WebService - 只需添加另一个Web方法并返回字符串,如果是REST / JSON,则可以使用WebCliet获取字符串...请参阅此处( http://blogs.msdn.com/brada/archive/2008/04/25/silverlight-flickr-example.aspx )如何使用flickr REST API下载字符串 - 希望它能帮到你。

问候,
Alex
Hi,

You want to stream string data from server to clinet? You could use WebCliet.DownloadStringAsync method which will use your server side functionality to perepare CSV there and respond with the CSV string... What do you have on server side interms of business logic and technology? If it is WebService - just add another web method and return the string, if it is a REST/JSON, you could use WebCliet to get the string... See here(http://blogs.msdn.com/brada/archive/2008/04/25/silverlight-flickr-example.aspx) how to use flickr REST API to download string - hopefully it will help you.

Regards,
Alex


这篇关于文件从silverlight下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆