• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 444
  • Last Modified:

How can I navigate to and away from a Silverlight page in an ASPX website without having to initialize Silverlight each time?

I have an ASP.NET application that we will eventually be converting to a Silverlight application.
Currently, we are only porting over a few pages to Silverlight for the next release.

One of the pages, we'll call it ItemPage.xaml, will take an ItemId as a query parameter, and load some charts and tables with data.
Each time the ASP.NET application makes a call to the ASPX page that hosts this SL page, SL initializes and takes a while.  

I was wondering how I could set it up so that the page initializes SL only on the first call, and then any other page in the ASP.NET application
can make a call to that page (while passing query paremeters) without the additional overhead of having to initialize SL each time?

Any help you could offer would be appreciated.

Thanks!
0
fdafeo
Asked:
fdafeo
1 Solution
 
Chinmay PatelEnterprise ArchitectCommented:
Hi fdafeo,

I am not sure how your application is designed so I will suggest what I think would be the best but maybe there are better ways to do it.

If ItemPage.xaml is called from a similar set of aspx page you could either use an IFrame[I will prefer this] or a frameset. Keep the IFrame/frameset so that it doesn't bother your main ASPX UI and load the IFrame that hosts your ItemPage.xaml over your existing ASPX. So your base ASPX is still there but the IFrame will show Silverlight content and hide the page.

Let me know if you need more clarification on the same.


Regards,
Chinmay.
0
 
fdafeoAuthor Commented:
Answer was a bit vague with no samples, but easy to understand.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now