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.
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.
Observer the “initParams” attribute. You can set it up to anything from codebehind.
Thanks