[Sample Of Sep 19th] How to use WCF to implement Reverse Ajax in ASP.NET

  Sample Download : CS Version: http://code.msdn.microsoft.com/How-to-use-WCF-to-d5e6b9f7 VB Version: http://code.msdn.microsoft.com/How-to-use-WCF-to-e6da8154 Reverse Ajax is also known as Comet Ajax, Ajax Push, Two-way-web and HTTP server push. This technique persists a HTTP request to allow the server push data to a browser, without requesting the server in an individual time. This sample shows how to use this…


[Sample Of Sep 8th] How to fill a DataTable with the result of LinqToEntity

  Sample Download :  http://code.msdn.microsoft.com/How-to-fill-a-DataTable-b0a4feb0 This sample demonstrates how to fill a DataTable with the result of the Linq to Entity query. Linq to Entity is a simple way for the developers, but sometimes we need to use the DataTable. In this sample, we demonstrate two ways to fill a DataTable with the result of…


[Sample Of Sep 5th] How to retrieve output parameter from stored procedure in Entity Framework

  Sample Download :  http://code.msdn.microsoft.com/How-to-retrieve-output-e85526ba  This sample demonstrates how to use ObjectParameter instance to get the value of output parameter in Entity Framework.   You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility…


[Sample Of Aug 30th] Evaluate function and get local variables of a Managed Process Using MDbg

  Sample Download : http://code.msdn.microsoft.com/Evaluate-function-and-get-d0b160de The sample demonstrates how to debug a managed process and supplies following features: 1. Stop and continue the target process. 2. List the threads of the target process, and get the local variables in the frame which has source code. 3. Evaluate a function in the target process.   The…


[Sample Of Aug 15th] How to cross domain with JSONP, jQuery and RESTful WCF service provider

  Sample Download : CS Version: http://code.msdn.microsoft.com/How-to-cross-domain-with-f24d4754 VB Version: http://code.msdn.microsoft.com/How-to-cross-domain-with-8174e773 This code sample demonstrate how to use jQuery or original JavaScript to cross domain. JSONP is a convention used to invoke cross-domain scripts by generating script tags in the current script. The result is returned in a specified callback function. JSONP is based on the…

1

[Sample Of Aug 11st] Create a custom asynchronous code activity

  Sample Download : http://code.msdn.microsoft.com/Create-a-custom-asynchronou-1598437b   This sample is created for two purposes.  1. Demonstrate how to create an asynchronous WF4 activity and use it in workflow.  2. provide a usable Http Get Activity. so that you can use it directly in your project.  You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized…


[Sample Of Aug 5th] Correlate two workflow services to work together in WF4

  Sample Download : http://code.msdn.microsoft.com/Correlate-two-workflow-to-2ad7722e The code sample shows how to correlate two workflow services to work together in WF4. You can find more code samples that demonstrate the most typical programming scenarios by using Microsoft All-In-One Code Framework Sample Browser or Sample Browser Visual Studio extension. They give you the flexibility to search samples,…


[Sample Of Jun 5th] How to use IsolationLevel Enumeration in DbTransaction

  Sample Download : http://code.msdn.microsoft.com/How-to-use-IsolationLevel-36783d30 In this application, we will demonstrate how to use the IsolationLevel Enumeration in DbTransaction. We will show you which of the following behaviors are allowed in the different isolation levels. 1. Dirty reads; 2. Non-repeatable reads; 3. Phantoms. We will execute the following up behaviors in the following isolation levels:…


[Sample Of Apr 29th] How to create DataTable manually with specific schema definitions

  Sample Download :  http://code.msdn.microsoft.com/How-to-create-DataTable-25f6c390 Sometimes we may need to create the DataTable manually and some specific schema definitions, such as Foreign Key constraints, expression columns and so on. In this sample, we will demonstrate how to create the DataTable manually with specific schema definitions: 1. Create multiple DataTable and define the initial columns. 2….