Click here to Skip to main content
15,887,442 members
Articles / .NET
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
17 Apr 2014CPOL 6K   39   3  
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:

    Image 1

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

    Image 2

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

    Image 3

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

    Image 4

    Check below code snippet

    Image 5

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

    Image 6

    Check the below code snippet:

    Image 7

History

  • 17th April 2014 - Initial version

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --