SilverLight下载任意文件技巧
xaml采用LinkButton 其NavigateUri属性链接到服务端下载的ashx文档
如
<HyperlinkButton Margin="32,135,198,140" Content="HyperlinkButton" NavigateUri="http://localhost:1399/download.ashx" />
download.ashx如下
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
xaml采用LinkButton 其NavigateUri属性链接到服务端下载的ashx文档
如
<HyperlinkButton Margin="32,135,198,140" Content="HyperlinkButton" NavigateUri="http://localhost:1399/download.ashx" />
download.ashx如下