Feeds:
Posts
Comments

Archive for August, 2005

I was reading about Nullable Types in the C# 2.0 specification for the .NET Framework 2.0 today. I am surprised I didn’t find out about this feature long ago, goes to show that you learn something new every day. So what are Nullable Types? Simply put, Nullable Types are value types that a can be [...]

Read Full Post »

It is often the case that I am frustrated, and have numerous complaints with service oriented organizations.  Seldom do I get the chance to praise good service. Today is an exception… I have been a customer of Giganews for a couple of years now.  Giganews provides me with newsgroup data feeds, from where I download [...]

Read Full Post »

I truly love Norton’s Ghost 2003! My laptop was behaving strangely this evening – applications were spontaneously hanging, system was freezing when logging out, etc.  A closer look at my Windows XP event log told me that STISVC.EXE (still imaging service) was failing to start, and a whole load of errors were reported about the [...]

Read Full Post »

Pop quiz, what is wrong with the following class? public class MyPlaceHolder : PlaceHolder { protected override void OnInit(EventArgs e) { Page.Trace.Write(this.ID, “In OnInit”); base.OnInit(e); } protected override void OnLoad(EventArgs e) { Page.Trace.Write(this.ID, “In OnLoad”); base.OnLoad(e); } protected override void OnUnload(EventArgs e) { Page.Trace.Write(this.ID, “In OnUnload”); base.OnUnload(e); } protected override void OnPreRender(EventArgs e) { DropDownList [...]

Read Full Post »

I am currently writing an ASP.NET server control, which exposes a number of custom events.  I was looking through my code archives for a helper class, which will safely call handler methods of a multicast delegate, when an event is triggered.  I found the class I was looking for, and decided to publish it here [...]

Read Full Post »

I spent another late night in the server room last night, working on my crippled server (see yesterday’s post), but I think I have resolved the issue. The problem has to be hardware related because a reinstall of a previous working Ghost image was experiencing the same “hanging” symptoms as before, but yet my server [...]

Read Full Post »

Server Problems

This is technically a rant, but it is also software related, so I have posted my woes here…. I ran into problems with one of my Windows 2003 servers yesterday.  It all started when I had connected remotely (via RDP) from the office and installed the latest Microsoft updates.  The upgrade went smoothly, but after [...]

Read Full Post »

Chris Lovett wrote a wonderful .NET library called SGMLReader, which, when passed a regular HTML file will spit out XHTML.  The library relies on SGML parsing and uses a DTD (Document Type Definition) file to parse unformatted HTML.  I’ve been playing with Chris’s library this week and trying to convert HTML to XHTML on the [...]

Read Full Post »

I’ve been messing around with post back handler in ASP.NET today, and I found out a few points of interest.  Firstly, a description of the two interfaces used with server controls to handle post backs: IPostBackEventHandler – Implemented by server controls that wish to handle post back events. The RaisePostBackEvent method is invoked by the [...]

Read Full Post »

FOR XML and ADO.NET

My esteemed colleague Sahil Malik has blogged about using FOR XML in SQL server.  The following C# example demonstrates how to retrieve XML data from a SQL Server 2K5 database as XML: using (SqlConnection conn = new SqlConnection(“…”)) { using (SqlCommand cmd = new SqlCommand( “select’Rob’ as [Employee/@EmployeeName],’A cool dude’ as [Employee] FOR XML PATH(‘Staff’)”, [...]

Read Full Post »

Follow

Get every new post delivered to your Inbox.