Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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 :)
Posted
Comments
michaelschmitt 22-Nov-10 8:16am    
Open a new html/aspx site on button-click. In that opened site, host a silverlight application.

1 solution

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'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900