重定向到Silverlight应用程序"mainpage.xaml"来自"default.aspx" [英] Redirect to Silverlight Application "mainpage.xaml" from "default.aspx"
问题描述
我想显示一个来自aspx页面的silverlight导航页面.
假设我有一个ASP网站SilverlightApplication1.Web,并且在单个解决方案下有一个项目SilverlightApplication1.
现在,从提交"按钮上单击"Default.aspx",我想在单独的窗口中显示托管的Silverlight应用程序的"mainpage.xaml".
任何人都可以给我一个主意来解决这个问题:confused::doh:.
谢谢与问候
Sri:)
Hi,
I want to show a silverlight navigation page from a aspx page.
Assume I have a ASP Website SilverlightApplication1.Web, and a project SilverlightApplication1 under a single solution.
Now, from "Default.aspx" on submit button click, I want to show the hosted silverlight application''s "mainpage.xaml" in a separate window.
can anyone please give me an idea to get this working:confused: :doh: .
thanks & Regards
Sri :)
推荐答案
在"Default.aspx"中添加以下javascript方法
Add following javascript method in your ''Default.aspx''
<script type="text/javascript">
function Show()
{
window.open("SampleTestPage.aspx", "Sample Window");
}
</script>br mode="hold" />
Call this javascript method when you click the submit button.
Use your''s xap hosted file instead of ''SampleTestPage.aspx''
这篇关于重定向到Silverlight应用程序"mainpage.xaml"来自"default.aspx"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!