Categories
ASP.NET Software Engineering

Tree structures in ASP.NET and SQL Server

I’ve just posted my latest article on Developer Fusion – Tree structures in ASP.NET and SQL Server, which takes a look at how you can store tree structures in SQL Server – and then doing something useful with them such as creating a web-directory like interface such as the one below.

I’d really appreciate any comments you might have …! … Read more “Tree structures in ASP.NET and SQL Server”

Categories
Software Engineering

Problems with the November CTP

I’ve finally managed to get hold of a copy of the November CTP, but have hit a strange problem when editing any web.config file – with a message box stating “Method not found: ‘Int32 Microsoft.VisualStudio. TextManager.Interop. IVsTextViewEx.IsExpansionUIActive()’.” whenever I try to cut/paste/delete (and trying to type in the file just doesn’t do anything). The other source files seem to edit … Read more “Problems with the November CTP”

Categories
C# Software Engineering

Customize XML Serialization using IXmlSerializable

XML Serialization in .NET provides an incredibly useful (and easy) way to turn objects into XML and back again. However, in some situations, you may need more control over how your object is serialized. Recently, I found myself needing to serialize an object that contained a number of property name/values – stored using a NameValueCollection. However, you can’t serialize this … Read more “Customize XML Serialization using IXmlSerializable”

Categories
ASP.NET Software Engineering

Yet more ASP.NET 2.0 & Generics

Continuing on my ASP.NET 2.0/Generics adventure…. there also seems to be no way to specify that a Page or UserControl inherits from a class with a type parameter using the Inherits attribute – and doing this in the code doesn’t work, as the partial class declarations end up specifying different base classes.

Am I missing something elementary here?

Categories
ASP.NET Software Engineering

Generics in ASP.NET 2.0?

I’ve finally gotten around to having a closer look at the current Whidbey beta – particularly from the ASP.NET angle. However, I’ve got a fairly straightforward question that so far I haven’t been able to find any answer to – or even the slightest hint of one. Suppose I want to create a custom Web Control, that accepts a type parameter so … Read more “Generics in ASP.NET 2.0?”

Categories
Software Engineering

Microsoft Error Messages

Apologies to everyone in advance – this just made me laugh.

There was once a young man who, in his youth, professed his desire to become a great writer.

When asked to define “great” he said, “I want to write stuff that the whole world will read, stuff that people will react to on a truly emotional level, stuff that … Read more “Microsoft Error Messages”

Categories
C# Software Engineering

Automatically convert VB.NET code to C#

I’ve just launched another utility on Developer Fusion – this time, a converter from VB.NET to C#. This is the only VB.NET to C# converter that I’m aware of which is currently online.

The code is very much a work-in-progress. As with the C# to VB.NET converter, the code is based on the great work of the #develop team. I’m … Read more “Automatically convert VB.NET code to C#”

Categories
C# Software Engineering

Automatically Convert C# code to VB.NET

I’ve just put up the first (of many) planned utilities on Developer Fusion – a conversion tool for automatically translating C# code into its VB.NET equivalent.

http://www.developerfusion.com/utilities/convertcsharptovb.aspx

Feel free to take a look, and let me know if you find any problems. The credit is 99.99% due to the guys behind #develop. I’ve simply made this tiny bit of their great application … Read more “Automatically Convert C# code to VB.NET”

Categories
Software Engineering

Windows Installer XML goes live on SourceForge

Microsoft has released the source code for the Windows Installer XML (WiX) developer tool to SourceForge earlier today under the IBM Common Public License as part of the Shared Source Initiative. This is the first SSI to go “public” on Source Forge rather than a Microsoft site, and the first to use an externally created “Open Source” license.

There’s a discussion on … Read more “Windows Installer XML goes live on SourceForge”

Categories
Software Engineering

The Coolest DHTML Calendar Widget…

Just came across a very cool DHTML Calender control that – guess what – allows you to select dates/times and stick them in an input field! Obviously its client-side, so its nice and fast, customizable, released under LGPL, and best of all works in almost any browser (Internet Explorer, Opera, Mozilla, Safari …).

http://dynarch.com/mishoo/calendar.epl

Definitely worth a look :,,)

Categories
Information Security & Privacy Software Engineering

Windows IE exploit found after source code leak

I must admit this happened much quicker than I thought it would :- see these articles on the Register and Security tracker – apparently an exploit for a buffer overrun problem in IE *5* has already been released – supposedly discovered by reading the leaked windows source code.

I’m curious as to whether this source code leak will be a … Read more “Windows IE exploit found after source code leak”

Categories
C# Software Engineering

Performance of C# vs VB.NET

Someone asked me a few days ago whether there were any major differences between C# and VB.NET performance, and my immediate reaction was “certainly not!”…. until I just came across this article on builder.com. In it, the author points out that for the number of program he tried, the C# version consistently generated fewer lines of IL code than its … Read more “Performance of C# vs VB.NET”