Internet Explorer中的HtmlPage.window.navigate

时间:2012-08-31 10:02:06

标签: google-chrome internet-explorer-9 silverlight-5.0

我开发了一个小型Silverlight应用程序,在使用Chrome进行测试时,一切都按预期工作。我的部分应用程序涉及从应用程序所在的服务器下载ISO映像。为方便起见,我使用以下代码:

Uri uri = new Uri("http://mytetSite/somefile.iso");
HtmlPage.Window.Navigate(uri);

使用Chrome测试应用时,会使用原生Chrome下载程序下载文件。 当使用Internet Explorer 9执行上面的代码时没有任何反应,我也尝试使用Hyperlinkbutton控件(和设置的情况) - 但结果相同:在chrome中工作,但在按下按钮时发生 nothing 互联网浏览器。

导致上述情况的原因是什么?我将如何解决这个问题? (我甚至没有在Internet Explorer中获得弹出警告对话框。)

0 个答案:

没有答案