Thanks, I have managed to resolve it now. It turned out to be a missing runat="server" attribute on the form...