Learning Center
Plans & pricing Sign in
Sign Out



  • pg 1
									====================================================== Windows Live Messenger Library Sign-in Control Samples ====================================================== ** OVERVIEW ** Included in this folder are well-written samples which provide examples of how to use the Sign-in control. These samples will show you how to: 1. Use the sign-in control to authenticate and sign-in. 2. Show/Hide the sign-in control. 3. Show required sign-in control links.

** PREREQUISITES ** To run the samples, you should have installed the following: 1. Script# Available here: 2. Visual Studio 2008 NOTE: Visual Studio is not absolutely required, but with it you will be able to immediately run and try out the samples.

** FOLDER STRUCTURE ** You will find included two sets of samples: 1. .\JavaScript Simple JavaScript version of the sample code. 2. .\ScriptSharp Script# version of the sample code. Each folder has its own Visual Studio Solution files aptly named "SignInControl.sln." Each folder also contains within it a "WebSite" folder. The WebSite folder contains static HTML and Script code for the samples. For the Script# sample, once compiled, Script code should appear in the "WebSite\Script" folder. Both the JavaScript and ScriptSharp "WebSite" folders have two different HTML files:

1. SignInControl_Default.html Simple sign-in control example that authenticates the user and performs sign-in to the Messenger service. 2. SignInControl_Hide.html More advanced sign-in control example that authenticates the user, performs sign-in, provides Show/Hide functionaliy, and shows Sign-in control links.

** CONFIGURATION ** All the configurable parameters are grouped together: 1. For the JavaScript sample: See the "SignInControl_Default.html" and "SignInControl_Hide.html" source. At the top of the HTML is JavaScript code with a "CONFIGURABLE SETTINGS" section. 2. For the Sciprt# sample: See the SignIn.cs code. There is a "CONFIGURABLE SETTINGS" section contained at the top of the source. In both cases (1 & 2 above), there are 3 separate settings: 1. "scriptLocation" This is the base-directory where you have hosted the sample. For example, if you hosted the sample at, then you would need to set the script location to "/Samples/SignInControl." 2. "privacyUrl" The name of the file that contains the privacy statement for your site. By default a "Privacy.html" is already included, so you shouldn't need to change this setting. 3. "channelUrl" The name of the file that contains the channel HTML for your site. By default a "Channel.html" is already included, so you shouldn't need to change this setting.

** USING THE SAMPLES ** To run the samples you can just open the "SignInControl.sln" for the appropriate language and press "F5" within Visual Studio. When it runs, it will launch the IIS development server locally in addition to automatically launching the browser. Another option is to host the sample code in IIS server directly.

For the JavaScript sample, you can simply copy the conten ts of the "WebSite" folder. For the ScriptSharp sample, compile the code, and then copy the contents of the "WebSite" folder.

To top