我想从我的silverlight应用程序调用aspx页面。我在Silverlight应用程序的.Web部分保存了aspx页面,以便我可以在我的Silverlight应用程序中使用Crystal报表。从silverlight调用aspx页面
我调用的是asp.net页面中Silverlight页面代码
private void bttnGenerateReport_Click(object sender, RoutedEventArgs e)
{
if (cboBranch.SelectedIndex != -1)
{
Uri myUri = null;
myUri = new Uri(HtmlPage.Document.DocumentUri, String.Format("Reports/ConcurrentReport.aspx?PlanCode={0}&BranchCode={1}", PlanCode, BranchCode));
HtmlPage.Window.Navigate(myUri, "_blank");
}
}
,但我正在逐渐HtmlPage.Window.Navigate错误(myUri,“_blank”)作为“访问被拒绝”。 。InvalidOperationException异常是未处理
我使用Windows 7和IE8