Dave Burke : Freelance .NET Web Developer specializing in Online Communities

It's about basics

I hadn't used the HtmlControls.HtmlInputFile control for a while, and was getting

"Object reference not set to an instance of an object." 

My form encryption type was correct, id name gibed, everything good.  Since everything was “right” I thought it might do a W2K3 thing. (Wouldn't be the first time...)  So a do a quick Existing Item copy to a W2K Server project and relaunch.  Same error.  Good!  Not a W2K3 issue. 

Reviewing the code again I saw that I didn't declare my HtmlInputFile control as protected! 

So I need to remember: when complexed, do a .NET 101 code check. 

Comments (0) | Post RSS RSS comment feed

Posted on 3/30/2004 9:08:00 PM by Dave Burke
Categories:
Tags: no tags for this post

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke