RationalGeek
RationalGeek

Reputation: 9599

Mixing application modules between Silverlight and ASP.NET

Background:
I work in a suite of ASP.NET applications that have several different "modules". The applications all share a main menu, so they all link to one-another. The modules are the high-level areas of the application. So, for example, it might be Payments, Orders, Customers, Products, etc. And Payments and Orders are in one app and Products and Customers are in another. Some of these menu links are "deep links", for example it might be a link to a particular page within the Customers module, such as Create New Customer.

The issue:
We are about to start a project that will add several more modules to this suite, probably as a new .NET application. I'm thinking about doing these new modules in Silverlight (for various reasons that are not material to the question). If I were to do that, I need to make the menu look the same as the menu in ASP.NET, as the users still need to feel like they are inside one "application".

My questions:

Edit:
After looking around a bit more, it seems like PRISM might be the answer for some of my issues. It would allow me to modularize the different chunks of Silverlight that I have. And it would allow me to define a "master page" in Silverlight where I could host the menu. Do I have this right?

Upvotes: 3

Views: 371

Answers (1)

RationalGeek
RationalGeek

Reputation: 9599

Well since I didn't get any answers I guess I'll answer myself.

  • You can "deep link" into Silverlight projects using the Silverlight Navigation Application which is a project type for VS 2010 that comes with the Silverlight Toolkit.
  • You can modularize a Silverlight application using Prism (a.k.a. the Composite Application Block) or MEF (Managed Extensibility Framework). Both frameworks have different pros and cons and different things that they do well.

I haven't decided on how to implement the menu, whether in ASP.NET or Silverlight. But with the building blocks above both would have the necessary functionality.

Upvotes: 1

Related Questions