|
 |
aspx thread: RE: Problems importing System.Data(OT)
Message #1 by "Joe Fawcett" <joefawcett@h...> on Thu, 31 Jan 2002 14:45:32 +0000
|
|
For your benefit I'm replying at the top but I consider it normal to reply
after a message to create a thread that people can run through, not back
track. It's the traditional way to do it on newsgroups I believe.
Joe
>From: "Greg Quinn" <greg@i...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] RE: Problems importing System.Data
>Date: Thu, 31 Jan 2002 16:05:00 -0800
>
>Please post the full source so we can take a good look. Also, what file is
>it in? .vb or a class file or what?
>
>PS : Why when you reply to an email do you type at the very bottom of the
>mail??? Standard practise is to type in your reply at the top of the mail.
>I
>looked at your reply and almost deleted it cos I though you hadn't typed
>anything!!
>
>Greg
>
>
>-----Original Message-----
>From: Hugh McLaughlin [mailto:hugh@k...]
>Sent: 31 January 2002 01:59
>To: ASP+
>Subject: [aspx] RE: Problems importing System.Data
>
>
> > when you are declaring your namespaces in a class file or .vb source
>file
> > use the Imports directive.
> >
> > When you are declaring the namespaces in an .aspx page or global.asax
>page,
> > use the <%@ Import Namespace = "xx" %> directive.
> >
> > Greg
> >
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: 31 January 2002 11:46
> > To: ASP+
> > Subject: [aspx] Problems importing System.Data
> >
> >
> > Hello Everyone and thanks for your help in advance. I am building a
> > business component for accessing a database via and ASP.net page. It is
> > similar to pages on the IBuySpy example on www.asp.net. I am running
> > into problems importing a namespace. I am using the following code:
> >
> > Imports System
> > Imports System.Data
> > Imports System.Configuration
> > Imports System.Data.SqlClient
> >
> > More Code Here....
> >
> > When I compile, I receive the following error:
> >
> > error BC30466: Namespace or type 'Data' for the imports 'System.Data'
> > cannot be
> > found.
> >
> > To ensure that everything was running properly on my system, I tried the
> > same code
> >
> > <%@ Import Namespace="System.Data" %>
> >
> > in an aspx page and it worked fine.
> >
> > Not sure what is happening here. Any help would be greatly appreciated.
> >
> > Thanks.
> >
>I am. The code at the top of my message is the one that is failing. Se
>below:
>
>Imports System
>Imports System.Data ***This is the line that is causing the error.
>
>
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
Message #2 by "Greg Quinn" <greg@i...> on Thu, 31 Jan 2002 16:57:06 -0800
|
|
Hmmm,
If you read through all messages on this forum, replies are at the top...
-----Original Message-----
From: Joe Fawcett [mailto:joefawcett@h...]
Sent: 31 January 2002 06:46
To: ASP+
Subject: [aspx] RE: Problems importing System.Data(OT)
For your benefit I'm replying at the top but I consider it normal to reply
after a message to create a thread that people can run through, not back
track. It's the traditional way to do it on newsgroups I believe.
Joe
>From: "Greg Quinn" <greg@i...>
>Reply-To: "ASP+" <aspx@p...>
>To: "ASP+" <aspx@p...>
>Subject: [aspx] RE: Problems importing System.Data
>Date: Thu, 31 Jan 2002 16:05:00 -0800
>
>Please post the full source so we can take a good look. Also, what file is
>it in? .vb or a class file or what?
>
>PS : Why when you reply to an email do you type at the very bottom of the
>mail??? Standard practise is to type in your reply at the top of the mail.
>I
>looked at your reply and almost deleted it cos I though you hadn't typed
>anything!!
>
>Greg
>
>
>-----Original Message-----
>From: Hugh McLaughlin [mailto:hugh@k...]
>Sent: 31 January 2002 01:59
>To: ASP+
>Subject: [aspx] RE: Problems importing System.Data
>
>
> > when you are declaring your namespaces in a class file or .vb source
>file
> > use the Imports directive.
> >
> > When you are declaring the namespaces in an .aspx page or global.asax
>page,
> > use the <%@ Import Namespace = "xx" %> directive.
> >
> > Greg
> >
> >
> > -----Original Message-----
> > From: Hugh McLaughlin [mailto:hugh@k...]
> > Sent: 31 January 2002 11:46
> > To: ASP+
> > Subject: [aspx] Problems importing System.Data
> >
> >
> > Hello Everyone and thanks for your help in advance. I am building a
> > business component for accessing a database via and ASP.net page. It is
> > similar to pages on the IBuySpy example on www.asp.net. I am running
> > into problems importing a namespace. I am using the following code:
> >
> > Imports System
> > Imports System.Data
> > Imports System.Configuration
> > Imports System.Data.SqlClient
> >
> > More Code Here....
> >
> > When I compile, I receive the following error:
> >
> > error BC30466: Namespace or type 'Data' for the imports 'System.Data'
> > cannot be
> > found.
> >
> > To ensure that everything was running properly on my system, I tried the
> > same code
> >
> > <%@ Import Namespace="System.Data" %>
> >
> > in an aspx page and it worked fine.
> >
> > Not sure what is happening here. Any help would be greatly appreciated.
> >
> > Thanks.
> >
>I am. The code at the top of my message is the one that is failing. Se
>below:
>
>Imports System
>Imports System.Data ***This is the line that is causing the error.
>
>
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|
|
 |