A new release of Microsoft All-In-One Code Framework is available on April 16th. This blog introduces 14 ASP.NET and Azure code samples in the release. The rest new samples will be introduced next week.
Download address: http://1code.codeplex.com/releases/view/64551
Alternatively, you can download the code samples using Sample Browser v3. The new Sample Browser gives you the flexibility to search samples, download samples on demand, manage the downloaded samples in a centralized place, and automatically be notified about new releases.
If it’s the first time that you hear about Microsoft All-In-One Code Framework, please read this Microsoft News Center article http://www.microsoft.com/presspass/features/2011/jan11/01-13codeframework.mspx, or watch the introduction video on YouTube https://www.youtube.com/watch?v=cO5Li3APU58, or read the introduction on our homepage http://1code.codeplex.com/.
New Azure Code Samples
This sample demonstrates how to run a WCF Workflow Service on Windows Azure. It uses Visual Studio 2010 and WF 4. While currently Windows Azure platform AppFabric does not contain a Workflow Service component, WCF Workflow Services can be run directly in a Windows Azure Web Role. By default, a Web Role runs under full trust, so it supports the workflow environment.
The workflow in this sample contains a single Receive activity. It compares the service operation’s parameter’s value with 20, and returns “You’ve entered a small value.” or “You’ve entered a large value.”. The client application invokes the Workflow Service twice, passing a value less than 20, and a value greater than 20.
For more Windows Azure code samples, please refer to the Windows Azure Code Samples Index.
New ASP.NET Code Samples
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 technique in ASP.NET Ajax.
The code sample demonstrates creating an ASP.NET web application that supports user login using HttpWebRequest Class without manually filling out username and password textboxes. In the code sample, the Login.aspx page implements the normal login, and the AutoLogin.aspx page implements the programmatic login.
Infinite scroll, has also been called autopagerize, unpaginate, endless pages. But essentially it is pre-fetching content from a subsequent page and adding it directly to the user’s current page. The code sample demonstrates loading a large number of data entries in an XML file. It support infinite scroll with the AJAX technology.
This project illustrates how to limit the download speed via coding. If you have installed IIS 7.0 we strongly recommend you use the Bit Rate Throttling feature instead of what this code sample demos to limit the download speed. Please refer to http://www.iis.net/download/BitRateThrottling.
If you have any suggestions for the code samples, please email us: firstname.lastname@example.org.