473,473 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Reference problem...

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
Nov 16 '05 #1
2 1165
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.
"Raphaël ARBUZ" <ra**********@netcourrier.com> wrote in message
news:40***********************@nan-newsreader-07.noos.net...
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

Nov 16 '05 #2
Dan,

Thanks for your help.

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

Thanks again for your help

Raphael
"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk> a écrit
dans le message de news: ex**************@TK2MSFTNGP12.phx.gbl...
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.
"Raphaël ARBUZ" <ra**********@netcourrier.com> wrote in message
news:40***********************@nan-newsreader-07.noos.net...
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


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Pkpatel | last post by:
Hi, I keep getting this error every time I try to load crystalreportviewer on a webform with a dataset. Here is the error: -------------------------------------------------------- Server...
6
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: "...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
2
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
3
by: Richard Lewis Haggard | last post by:
We are having a lot of trouble with problems relating to failures relating to 'The located assembly's manifest definition with name 'xxx' does not match the assembly reference" but none of us here...
5
by: Michael Russell | last post by:
Hi all, Using C#, I've created a simple wrapper class for using Excel. I have Office Pro 2003 installed on my devel machine. The wrapper class works great, reading and writing to/from Excel. ...
27
by: David W | last post by:
I'm almost tearing my hair out. A colleague claimed that a null reference can exist, like this: void f( int& p ) { printf( "%d\n", p ); } int main (int argc, char *argv) {
8
by: toton | last post by:
HI, One more small doubt from today's mail. I have certain function which returns a pointer (sometimes a const pointer from a const member function). And certain member function needs reference...
2
by: toton | last post by:
Hi, This is continuation of topic pointer & reference doubt. http://groups.google.com/group/comp.lang.c++/browse_thread/thread/df84ce6b9af561f9/76304d7d77f6ccca?lnk=raot#76304d7d77f6ccca But I...
29
by: shuisheng | last post by:
Dear All, The problem of choosing pointer or reference is always confusing me. Would you please give me some suggestion on it. I appreciate your kind help. For example, I'd like to convert a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.