Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Pass Values from One Silverlight Application to Another Silverlight Application using WCF Service

0.00/5 (No votes)
17 Apr 2014 1  
How to pass values from one Silverlight application to another using WCF service

Introduction

This tip shows how to pass values from one Silverlight application to another Silverlight application using WCF service.

Using the Code

  1. Create a simple WCF service which is used to set / get user Name. Check the below code snippet for Iservice1:

  2. Use session object to store the entered user name. Check the below code snippet for "SetUserName" method.

  3. GetUserName method is used to get the entered user name. check the below code snippet.

  4. Create one Silverlight application to enter "User Name". Check the below code snippet.

    Check below code snippet

  5. Create another application which is used to get the "User Name" and display it.

    Check the below code snippet:

History

  • 17th April 2014 - Initial version

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here