Return List Item Collection from XML Feed in C#

This example shows how to return a list of items from a feed as a C# collection. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using System.Xml.Linq; using System.Net; namespace FeedInfo { public class FeedItem { public string Item1{ get; set;...

Read Full Post (357) and Comment (1)


Parsing DateTime values in C#

Just a post to outline a few extra ways of parsing dates in C#. These are useful for internationalised apps. try { //Tell the parser to expect a en-GB (culture) date DateTime myDate = DateTime.Parse("20/02/2010", new CultureInfo("en-GB")); //Tell the parser to expect a date with a...

Read Full Post (490) and Comment (0)


Six Cool Things About ASP.NET 4.0

I’ve been using the Visual Studio 2010 and ASP.NET 4.0 betas and exploring some of the new features available in the new versions of VB 10 and C# 4. I've put together a list of the top 6 things I like about the new releases: 1. User interface improvements The Visual Studio 2010 user interface has...

Read Full Post (941) and Comment (0)


Fixing “Unable to read data from the transport connection” error when transferring data to web service from WinMo via Orange UK

This post doesn't have a particularly catchy title and a might be tiny bit dull for non-techies, but I just wanted to share a problem and solution that cost me many hours to diagnose and resolve. Hopefully this will help somebody experiencing the same problem in the future. Let’s start from the...

Read Full Post (1255) and Comment (0)


Friendly URL Rewriting in ASP.NET

This article demonstrates a how to create friendly URLs for user content in ASP.net applications. The examples below are in C#. Convert them to VB if that's your language of choice. Background Sites like Twitter provide users with a direct link to their content in the format of " http://twitter...

Read Full Post (3420) and Comment (5)


Microsoft Smartphone *and* Windows Mobile 7 in 2010?

There have been rumours that a "Microsoft Smartphone" could be on the market by the end of 2009. With Microsoft planning to open retail stores around the UK, and with SkyBox and SkyMarket (MobileME and iTunes equivilents) on the horizon, you would be forgiven for thinking Microsoft is taking...

Read Full Post (648) and Comment (0)


DateTime.MaxValue overflow error in SQL Server CE

The following lines of code should pass the maximum date that can be selected to a SQL statement via a parameter. SqlCeCommand insertCommand = dbConn.CreateCommand(); insertCommand.CommandType = CommandType.Text; insertCommand.CommandText = "INSERT INTO MyDateTable (DateField) Values (@MyDate)";...

Read Full Post (960) and Comment (1)


Adding JavaScript onclick event to Radio Button List items in VB.net

This is a very simple post covering how to capture of a Radio Button List item value using the JavaScript onclick event handler. I'll start by assuming you already have the Radio Button List on your page and bound to a data source as follows: <asp:RadioButtonList ID="rblItems" runat="server"...

Read Full Post (1643) and Comment (0)


Importing CSV to Excel

This guide covers importing a CSV file into a blank worksheet using Microsoft Excel 2007. Don't open the CSV in Excel, instead create a new workbook, click on the data tab on the ribbon and select 'Get External Data', 'From Text'. Select 'delimited' if your data is seperated with a specific character...

Read Full Post (385) and Comment (1)


Microsoft announces Scottish launch event for 2008 products

Microsoft has just announced a Scottish launch event for Windows Server 2008 , SQL Server 2008 and Visual Studio 2008 . The event will take place in Edinburgh on 23rd April 2008 and will be held at the Royal College of Physicians. This is great news for Scottish partners and those who, due to overwhealming...

Read Full Post (311) and Comment (0)