|
 |
aspx thread: Error while compiling as .aspx page
Message #1 by "Nanda Kumar" <nandu@n...> on Thu, 16 Aug 2001 18:10:01 +0530
|
|
Hello Everyone,
I have written a small .aspx page which reads data from a database and
displayes in a list.
1. The following line automatically gets added to the file (in my project)
<%@ Application Codebehind="Global.asax.cs" Inherits="aspx.Global" %>
and when i compile i get this error -
'aspx.Global' is not a valid type
2. If i take this file out of my project and run is seperately, it gives me
a different error -
CS0246: The type or namespace name 'sqlDataAdapter' could not be found (are
you missing a using directive or an assembly reference?)
I have imported two namespaces in this file
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
Request to guide me in solving these.
Thanks in advance
nandu
Message #2 by "Al LeMay" <alemay@d...> on Thu, 16 Aug 2001 07:37:51 -0700
|
|
Change
<%@ Application Codebehind="Global.asax.cs" Inherits="aspx.Global" %>
To
<%@ Application Codebehind="Global.asax.cs" Inherits="Global" %>
-----Original Message-----
From: Nanda Kumar [mailto:nandu@n...]
Sent: Thursday, August 16, 2001 5:40 AM
To: ASP+
Subject: [aspx] Error while compiling as .aspx page
Hello Everyone,
I have written a small .aspx page which reads data from a database and
displayes in a list.
1. The following line automatically gets added to the file (in my
project)
<%@ Application Codebehind="Global.asax.cs" Inherits="aspx.Global"
%>
and when i compile i get this error -
'aspx.Global' is not a valid type
2. If i take this file out of my project and run is seperately, it gives
me a different error -
CS0246: The type or namespace name 'sqlDataAdapter' could not be found
(are you missing a using directive or an assembly reference?)
I have imported two namespaces in this file
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
Request to guide me in solving these.
Thanks in advance
nandu
|
|
 |