Hi all, need some help.

I've just built a (REALLY) simple hit counter to add to my website, and was forced to use ASP.NET. (but im not using visual studio at the moment).

I created a class file (counter.cs), and placed it in the App_Code folder. It was my assumption that by doing this, I would be able to instantiate an object of type Counter, giving me access to its methods and variables.

Problem is that as soon as I try to instantiate an object of this type, i get the error: "The type or namespace name 'Counter' could not be found".

Am I missing something here? Maybe I'm barking up the wrong tree?

Thanks!

Wow. All I have to say is wow.
6 hours, and a butt-load of client $$ later, I've found my error.

Its important to remember that C# is Case-sensitive. My class was defined as counter, and i was trying to instantiate an object of type "Counter". Stupid capital C.

Brock U should revoke my degree.
Thanks All.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.