Archives / 2007 / March
  • Video: Calling Web Services Asynchronously with ASP.NET

    In this video tutorial I walk through the fundamentals of calling Web Services asynchronously from an ASP.NET page using the .NET 2.0 event driven model exposed by Web Service proxy objects.  There are several different options for calling Web Services asynchronously including polling, callbacks and wait handles, but the event driven model is quite easy to use and doesn't put as much pressure on the ASP.NET thread pool as the other options.

  • Binding Data to ASP.NET 2.0 Server Controls

    I'm teaching the ASP.NET 2.0 Programming class at Interface Technical Training this week and had a few people ask questions about how to embed controls such as a DropDownList into a DetailsView and use it while in edit mode.  The sample code below demonstrates one way of doing this without resorting to VB.NET or C# code and shows how the <%# Bind("FieldName") %> data binding expression can be used. 

  • ASP.NET AJAX and Sys.Debug

    ASP.NET includes tracing functionality that can be used to track different issues in an application.  It can be used to easily inspect errors that have occurred, check sessions IDs, cookie values, ViewState size, server variables plus a lot more. 

  • Video: Creating Web Services with the .NET Framework

    I've had several people email me and ask if I could do a video covering the fundamentals of creating a Web Service using the .NET framework.  Since I enjoy working with Web Services I decided to make some time and do that. 

    The video discusses how to create a Web Service from scratch but also discusses some of the pros and cons that you should know about.  For example, many people will return a DataSet from a Web Service.  While that works, it's not very interoperable with non-.NET clients since the generated WSDL will be quite vague about what the Web Service actually returns.  By creating custom types (classes) the WSDL can more accurately show a client exactly what they're going to get back.  I've also seen many people put all of the code for a Web Service into the Web Method.  That works, but you can achieve better code re-use by creating distinct layers for business and data functionality.  These concepts and a few others are discussed in the video. Other topics covered include consuming a Web Service from an ASP.NET Web Form.

  • Digging WPF

    I'm really digging WPF these days.  While there are a lot of cool technologies out there, WPF seems to offer a lot of promise for desktop apps or even apps running within Internet Explorer when .NET 3.0 is installed on the client. 

    Simon Allardice (one of the cool/smart people I work with at Interface Technical Training) showed me a great WPF application today from the British Library that allows people to inspect some really old books and documents.  I've always enjoyed Mozart's compositions (I enjoy writing music on an amateur scale) and have been checking out some of his manuscripts. 

comments powered by Disqus