ASPX page and System.DATA

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fabrizio

    #1

    ASPX page and System.DATA

    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
  • Frank Oquendo

    #2
    Re: ASPX page and System.DATA

    Fabrizio wrote:[color=blue]
    > 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[/color]

    Put this at the top of your page:

    <%@ import namespace="Syst em.Data"%>

    Or you can fully qualify your variable declarations:

    System.Data.Dat aSet data = new System.Data.Dat aSet();


    Comment

    Working...