ASPX page and System.DATA

  • Thread starter Thread starter Fabrizio
  • Start date Start date
F

Fabrizio

HI,
i'm creating an ASPX page without code behind, including
some C# script. Trying to create a Dataset it gives me
the error that probably is missing a "using" or a
reference to a dll. How can I use the using System.Data
in a simple ASPX page?
Thank you
Fabrizio
 
Fabrizio said:
HI,
i'm creating an ASPX page without code behind, including
some C# script. Trying to create a Dataset it gives me
the error that probably is missing a "using" or a
reference to a dll. How can I use the using System.Data
in a simple ASPX page?
Thank you
Fabrizio

Put this at the top of your page:

<%@ import namespace="System.Data"%>

Or you can fully qualify your variable declarations:

System.Data.DataSet data = new System.Data.DataSet();
 
Back
Top