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

Posted on 2011-04-26
Last Modified: 2012-05-11
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.

Question by:fdafeo
    LVL 27

    Accepted Solution

    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.


    Author Closing Comment

    Answer was a bit vague with no samples, but easy to understand.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now