Category Archives: .NET

PGP Decryption using C#

Sorry if the PGP meme is getting old, I had to write some new code yesterday that decrypted a file full of ciphertext and I didn’t see any other examples on the net, so it gets posted here for posterity. … Continue reading

Posted in .NET, J2EE, Open Source, Software Development | 11 Comments

ASP.NET: The View State is invalid for this page and might be corrupted

I fixed a tricky bug yesterday on one of our sites that runs ASP.NET. Like all good webmasters, anytime a 500 error occurs on the site, an email is sent to me that contains all the juicy details: the URL … Continue reading

Posted in .NET, Systems Administration | 4 Comments

ebay web services talk by Jeffrey McManus

A couple weeks ago I attended the Boston .NET User Group to hear Jeffrey McManus give a talk on how ebay is using web services. I took a bunch of notes during his presentation, which I’m putting up here semi-edited. … Continue reading

Posted in .NET, J2EE, SOAP, Software Development, XML | Leave a comment

ASP.NET: Data-binding array of hashtables

Spent this morning in ASP.NET land working on a small modification in which I needed to data bind an array of hashtables to an <asp:repeater>. Looks like some other ASP.NETers had the same problem, but the ‘solutions’ they offered didn’t … Continue reading

Posted in .NET | 5 Comments

C# Public Properties vs. Java getX() and setX()

Martin Fowler blogged about C# properties a couple weeks back saying that he “.. liked the notion of properties right from the start..” because it’s “.. much more natural to write obj.X = other.X.” Further, ” … from a language … Continue reading

Posted in .NET, J2EE, Software Development | 12 Comments

.NET, Reflection and multiple assemblies

As part of a project I worked on at Mindseye, I wrote a couple utilities using C# that used reflection to query a given type for the existence of a method and if the method existed, to then invoke the … Continue reading

Posted in .NET | 1 Comment

NAnt build file tips

I found the documentation for NAnt to be lacking in build file examples, especially examples that deal with more than one task or include. If you’re completely new to NAnt, I’d suggest reading the article that Jeffrey McManus wrote for … Continue reading

Posted in .NET, Software Development | 12 Comments

Using Eclipse & NAnt

I’ve been using the Eclipse and NAnt together to write C#/ASP.NET apps for the last couple months, they’re relatively easy to get working together, but I thought I’d write it up for those who aren’t having such an easy time. … Continue reading

Posted in .NET, Software Development | 4 Comments

Accessing ASP.NET DropDownList Items from Code behind

Couple days ago I was writing an ASP.NET webform and I wanted to programmatically inspect the items in the drop down. The drop down list in the ASP.NET page looks something like this: <asp:dropdownlist id=”mydropdown” class=”dropbox” runat=”server”>   <asp:listitem text=” — … Continue reading

Posted in .NET | 2 Comments

ASP.NET TextBox MultiLine Incorrect Documentation

[Update: The link to the TextBox class from the ASP.NET TextBox Web Server Control points to the Windows Forms TextBox, not the Web Controls TextBox. Balls!] If you’re running into trouble when using the TextBox class in ASP.NET, the MultiLine … Continue reading

Posted in .NET | 1 Comment