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 7794655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:50:17+00:00 2026-06-01T22:50:17+00:00

I need to pass the current logged in user’s information to a Silverlight application

  • 0

I need to pass the current logged in user’s information to a Silverlight application through SharePoint 2010 Silverlight webpart. I am familiar with the custom “initialization parameters” in the Silverlight web parts properties but that does not solve my problem because of the nature of the information. The “Initialization Parameters” is fixed information and logged-in user information changes. I need to pass parameters programmatically to the silverlight application.

Maybe someone could point to a custom implementation of Silverlight host webpart. Any help would be much 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. Editorial Team
    Editorial Team
    2026-06-01T22:50:18+00:00Added an answer on June 1, 2026 at 10:50 pm

    To pass parameters dynamically to a Silverlight application, add a visual web part to your SharePoint 2010 project. and add the following code to the markup.

    <asp:Panel ID="SilverlightPanel" runat="server" >
        <div id="silverlightControlHost" style="width:100%;height:150">
            <object id="SLServicesBanner"
                    data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="500" height="300">
                <param name="source" value="your_xap_file_goes_here"/>
                <param name="initParams" value="<%= InitParameters %>" />
                <param name="background" value="white" />
                <param name="minRuntimeVersion" value="4.0.50401.0" />
                <param name="autoUpgrade" value="true" />
                <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none">
                    <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
                </a>
            </object>
            <iframe id="_sl_historyFrame" style="visibility:hidden; height:0px; width:0px; border:0px"> 
            </iframe>
        </div>
    </asp:Panel>
    

    Observer the “initParams” attribute. You can set it up to anything from codebehind.

    Thanks

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

Sidebar

Related Questions

I'm creating a control and need to pass it the current logon user as
I need to pass all my current page cookies to other server with request:
I need to pass a pointer through a scripting language which just has a
I need to do very simple thing - pass current URL from JSF (2.0)
i need to pass a javascript value named $.galleria.current to a linkbutton's CommandArgument declared
I have the need to pass the current model of the view, from the
I'm using RequireJS to load the modules in my application. I need to pass
I have a Ruby hash that contains a user-generated string. I need to pass
I need to pass some values to the fseek() method in C which are
I need to pass an ID and a password to a batch file at

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.