Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi
I'm integrating a silverlight 3 usercontrol to a asp.net application.
I have a masterpage in asp.net application which is built with 2 update panels.

first update panel consists of a table, and its first row contains a logo image, and the second row contains a <object> tag of type silverlight.

second update panel consists of a "div" which contains a ContentPlaceHolder where all the navigational .aspx pages are shown.

Now the issue is when I'm trying to navigate a .aspx page into ContentPlaceHolder,
Application_Exit and Application_Startup are getting fired in silverlight control.

I have a silverlight Button in silverlight usercontrol and whenever user clicks on the button it should navigate to a aspx page "contactus.aspx".

I'm using the below statement to navigate

System.Windows.Browser.HtmlPage.Window.Navigate(new Uri(toNavigate, UriKind.Relative)); 


navigation is getting done correctly, but always the silverlight applications is getting an exit and startup.

Please help me in this regards
Thanks in anticipation.

Sri
Posted
Comments
Mark Salsbery 13-Jul-11 18:17pm    
Yes when you navigate away from the page hosting the SIlverlight plugin, the plugin goes away and gets recreated when you return to the page.

You may want to change your question tags and add asp.net or web development since this issue is more related to those than Silverlight.

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