Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 123667
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:19:22+00:00 2026-05-11T04:19:22+00:00

I have an MVC application that among other things contains a small Silverlight menu

  • 0

I have an MVC application that among other things contains a small Silverlight menu that is displayed as part of the .Master page used in most pages.

I have also written a MembershipProvider (and a role provider) that uses my app’s database for authenticating and authorizing users. Works fine.

However, I want the Silverlight menu to contain some extra items if the user is in the admin role. Of course one possibility is to make two Silverlight menu applications and choose which one to display based on the user in the master page. But this has a ring of ugly to me.

The better option would be if the Silverlight app could figure out the identity of the logged in user is and use it to configure itself to show the admin options.

Is there a simple way to do something like this? The MVC application and the Silverlight app(s) are deployed on the same IIS7 server and part of the same solution.

The solutions I have found on the web so far either prompt the user for a separate login inside the Silverlight application, or do a lot of work with WCF services. If I have to, I’ll go that route, but I am stuck with a feeling that there should be an elegant, easy way to do this.

I believe firmly in the KISS principle so simplicity is highly appreciated!

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T04:19:23+00:00Added an answer on May 11, 2026 at 4:19 am

    I’m pretty much convinced that your Silverlight menu shouldn’t have to be aware of whether the user is an admin or not.

    If you have a ‘generic style’ menu control that can display any number of items, then I think those items should be communicated. The master view should then decide the items to show. Better yet, a controller should return the items to show based on the user’s status and the master view should just render them.

    If you have a menu control designed specifically to fit in your web app that isn’t really made to show any number of items, then the master view should just set a property or something to communicate this fact.

    The rest of your question confused me a bit, but I’m convinced that your silverlight component is not a complete ‘app’ in its own right, just a piece of the presentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an winforms application that was built using MVC. The controller is subscribing
I am looking at globalizing an application that I have developed in asp.net mvc.
I am using asp.net MVC to develop an application that will have ajax interactions.
I have an application, built using MVC, that produces a view which delivers summary
I have an ASP.NET MVC (using the release candidate) application that works with a
I have an application that started life as an MVC (1.0) app in Visual
I have a reporting MVC application that uses Castle Windsor. On application start up
I have an asp.net MVC application that has one section /admin locked down via
I have this ASP.NET MVC application that I now want to separate out the
I have an ASP.NET MVC application that also employs the typical NHibernate / Castle

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.