Using ADO.NET in Web Custom Control

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

    #1

    Using ADO.NET in Web Custom Control

    Is it possible to use ADO.NET in a custom control? I am trying to create a
    control and I try using the system.data.sql client namespace and when I try
    to compile it can't find that namespace. Please help!


  • Fabricio

    #2
    Using ADO.NET in Web Custom Control

    System.Data.Sql Client is a namespace NOT a class... move
    one level down. For example,
    System.Data.Sql Client.SqlConne ction.

    Also, make sure you have a reference to System and
    System.Data in your solution.

    -Fabricio
    [color=blue]
    >-----Original Message-----
    >Is it possible to use ADO.NET in a custom control? I am[/color]
    trying to create a[color=blue]
    >control and I try using the system.data.sql client[/color]
    namespace and when I try[color=blue]
    >to compile it can't find that namespace. Please help!
    >
    >
    >.
    >[/color]

    Comment

    • Jeremy Ames

      #3
      Re: Using ADO.NET in Web Custom Control

      I was trying to use it as a namespace, not a class. When I start typing
      System.D the auto complete box does not even show Data in the list. I have
      also tried referencing just System but that does not help me.

      "Fabricio" <fguzman_slotow n@yahoo.com> wrote in message
      news:051401c3bb 40$25d1bfb0$a00 1280a@phx.gbl.. .
      System.Data.Sql Client is a namespace NOT a class... move
      one level down. For example,
      System.Data.Sql Client.SqlConne ction.

      Also, make sure you have a reference to System and
      System.Data in your solution.

      -Fabricio
      [color=blue]
      >-----Original Message-----
      >Is it possible to use ADO.NET in a custom control? I am[/color]
      trying to create a[color=blue]
      >control and I try using the system.data.sql client[/color]
      namespace and when I try[color=blue]
      >to compile it can't find that namespace. Please help!
      >
      >
      >.
      >[/color]


      Comment

      Working...