-
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 ...! :)
(Also - if you've got any articles you'd like to see on Developer Fusion, please do drop me a line)
-
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 using the XmlSerializer class in .NET. I could have switched to using an array - at least for the serialization part - but this would have serialized the whole lot as a series of elements - and I wanted to do this using attributes.
[Apologies - I've had to snip the code from here, as the layout kept messing around]
Read more here: Customize XML Serialization using IXmlSerializable.