Creating JSON-enabled WCF services in .NET 3.5

 

Updated: A even simpler approach by the author. WCF 3.5 supports an even simpler model for building script services than the approach I outlined – by setting Factory=”System.ServiceModel.Activation.WebScriptServiceHostFactory” in your .svc file, you can completely remove all configuration file settings. In fact, you can reduce the entire service to a single file if you like by embedding the service class directly in the .svc file

 

Just over a year ago, I wrote an article for MSDN Magazine detailing how to make client-side web service calls with the ASP.NET Ajax extensions to .asmx web services. While most of the contents of that article still apply today to .NET 3.5 and Visual Studio 2008, there is a fundamental shift going on away from .asmx and towards .svc (WCF) for web services, so I thought it would be timely to post an update to that article to describe how to use WCF for your script-callable web services in .NET 3.5.

My goal with this post is to provide very specific and easy to follow instructions on how to create script enabled WCF services with the final release of Visual Studio 2008 and .NET 3.5.

The simplest way to create an Ajax-enabled WCF endpoint is to use the new Visual Studio 2008 Ajax-enabled WCF Service item template. You can also script-enable an existing WCF service, but to keep this streamlined, we’ll start with this template.

image

 

Via Creating JSON-enabled WCF services in .NET 3.5

Introducing Video.Show: A Silverlight Reference-quality Sample

 

image Video.Show is an end-to-end solution that provides a reference-quality sample for user-generated video content sites. Taking advantage of all of our latest technologies: .NET Framework 3.5, ASP.NET AJAX, LINQ, Silverlight, Expression Encoder and Silverlight Streaming, Video.Show provides support for uploading, encoding, tagging, viewing and commenting on videos.  Here’s a short feature list:

  • Video wall for browsing videos. Hover the mouse over any individual video to see an instant thumbnail preview.
  • Time marker-based comment system. Pause the video at an interesting moment and add your comment, and it will appear as that frame is displayed on playback.
  • Site membership using ASP.NET. Sign in and create a custom profile; favorite, tag and upload videos.
  • First-time experience for a user without Silverlight installed demonstrates best practices for detection and installation.
  • Web services for retrieving video catalogs, tagging and favorites.
  • Background batch processing task that handles the encoding of videos using Expression Encoder and uploads to Silverlight Streaming.

Download Video.Show here from CodePlex.

Also take a look at  Family.Show

Via Introducing Video.Show: A Silverlight Reference-quality Sample

Gallery Server Pro – An ASP.NET gallery for sharing photos, video, audio and other media – The Code Project – ASP.NET

 

Gallery Server Pro is a powerful and easy-to-use ASP.NET web application that lets you share and manage photos, video, audio, and other files over the web.

  • Stable, production ready.
  • Use any web browser to organize your media files into albums you can easily add, edit, delete, rotate, rearrange, copy and move.
  • Easily add thousands of files using one-click synchronize and ZIP file upload functions. Thumbnail and compressed versions are automatically created.
  • Powerful user security with flexible, per-album granularity.
  • Integrates with DotNetNuke and other frameworks to provide a superior media gallery.
  • Image metadata extraction. Supports these formats: EXIF, XMP, tEXt, IFD, and IPTC.
  • Search function queries title, caption, filename, and image metadata.
  • Image watermarking with your own text and/or image.
  • AJAX-enabled for more responsive UI.
  • Web-based installer makes installation painless.
  • Uses SQL Server 2000 or higher as the data store. Supports MSDE 2000 and SQL Server 2005 Express.
  • Uses ASP.NET Membership provider so you can integrate with your existing accounts, including Active Directory.
  • Data access uses the ASP.NET Provider model, which allows other data stores such as MySQL, MS Access, or Oracle to be used instead of SQL Server.
  • 100% managed code written in C# and ASP.NET 2.0.
  • Source code is released under the open source GNU General Public License.
  • All web pages target XHTML 1.0 Strict and CSS 2.1 standards to ensure maximum forward compatibility.

You can play with an online demo of Gallery Server Pro to get a sense of its capabilities. A pre-compiled version is available at www.galleryserverpro.com as well as additional documentation and a support forum.

Gallery Server Pro – An ASP.NET gallery for sharing photos, video, audio and other media – The Code Project – ASP.NET

43 Exceptionally Useful AJAX Applications > Design Vitality

Usability on websites is exploding right now. AJAX has enabled web developers everywhere to add functionality to their sites like never before. I’ve gathered 43 extremely useful (but still easy to implement) AJAX applications for use on any website. Keep your users coming back and increase your website’s functionality.

7 Categories:

  • General Purpose
  • Status Indicators
  • Forms
  • Text Editing
  • Tabbed Content
  • Galleries And Images
  • Chat Boxes

Via 43 Exceptionally Useful AJAX Applications > Design Vitality

ASP.NET AJAX in .NET 3.5 and VS 2008

 

ASP.NET AJAX included in .NET 3.5

 Starting with the .NET Framework 3.5 release, all of these features are built-in with ASP.NET, which means you no longer have to download and install a separate ASP.NET AJAX setup when building or deploying applications.

When you create a new ASP.NET application or web-site in VS 2008 that targets the .NET 3.5 framework, VS will automatically add the appropriate AJAX registrations in your web.config file and the core ASP.NET AJAX server controls will show up in your toolbox.

The version of ASP.NET AJAX that ships with .NET 3.5 has a number of nice improvements to it – including support for using UpdatePanels with WebParts, support for WCF based JSON end-points, support for using the ASP.NET Profile, Role and Login Application Services using JavaScript, and a number of bug fixes and performance improvements. 

ASP.NET AJAX in .NET 3.5 and VS 2008

del.icio.us Tags: ,

ASP.NET AJAX From ScottGu

 

ASP.NET AJAX Articles
ASP.NET AJAX Control Toolkit Articles
ASP.NET AJAX in VS 2008 and .NET 3.5 Articles
ASP.NET AJAX and AJAX Control Toolkit Videos

In this video series Joe Stagner and others from the Microsoft product team demonstrate how to use ASP.NET AJAX.

image

ASP.NET AJAX Books

del.icio.us Tags: