Reference problem...

  • Thread starter Thread starter Raphaël ARBUZ
  • Start date Start date
R

Raphaël ARBUZ

Hello,

I'm a very beginner in ASP.NET and I was attempting to work with several .cs
files so as tu use object programming capabilites. The problem is that when
I try to use a component (such as an Oracle Connection or a Data Grid)
created in my main .aspx file, with another class, I get an error when I
compile, telling me that an object reference may be missing....

Does anyone has a solution ?

Thank you so much

Raphael
 
Raphael,

1. You're not referencing the libraries that contain the controls you're
requesting.
2. In c# you specify the inclusion of namespaces using the "using" keyword
at the top of your cs file.

(1.) is a reference to the .Net DLL file, that's easily done in VS.Net by
clicking "add reference" when right clicking on your project name.
(2.) would simply be getting the namespace from that DLL, and doing
something like :

using System.IO; // namespace for reading writing to file.

hope that helps
Dan.
 
Dan,

Thanks for your help.

No, it wasn't the solution, but I will look more closely.

Thanks again for your help

Raphael
 
Back
Top