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;...
Return List Item Collection from XML Feed in C#
Posted in C# on Wednesday, March 17 2010 by Nick Kewney
Parsing DateTime values in C#
Posted in C# on Saturday, February 20 2010 by Nick Kewney
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...
Six Cool Things About ASP.NET 4.0
Posted in Microsoft on Tuesday, November 03 2009 by Nick Kewney
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...
Fixing “Unable to read data from the transport connection” error when transferring data to web service from WinMo via Orange UK
Posted in C# on Tuesday, June 16 2009 by Nick Kewney
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...
Friendly URL Rewriting in ASP.NET
Posted in C# on Sunday, April 12 2009 by Nick Kewney
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...
Microsoft Smartphone *and* Windows Mobile 7 in 2010?
Posted in Microsoft on Thursday, February 26 2009 by The Admin
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...
DateTime.MaxValue overflow error in SQL Server CE
Posted in Microsoft on Wednesday, January 21 2009 by Nick Kewney
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)";...
Adding JavaScript onclick event to Radio Button List items in VB.net
Posted in VB.NET on Wednesday, September 17 2008 by Nick Kewney
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"...
Importing CSV to Excel
Posted in Microsoft on Monday, March 10 2008 by Nick Kewney
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...
Microsoft announces Scottish launch event for 2008 products
Posted in Microsoft on Monday, March 10 2008 by Nick Kewney
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...









