在解决方案管理器中以引用了Microsoft.Data.Odbc,还是不行

解决方案 »

  1.   

    <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="water.WebForm1" %>
    <%@ import Namespace = "Microsoft.Data.Odbc"%>
      

  2.   

    if you are using .NET Framework 1.1, use System.Data.Odbc, otherwise, try
    <%@ Page CompilerOptions='/R:"C:\Program Files\Microsoft.NET\Odbc.Net\Microsoft.Data.Odbc.dll"'%>
    <%@ Import Namespace="Microsoft.Data.Odbc"%>or<%@ Assembly Name="Microsoft.Data.Odbc, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" %>
    <%@ Import Namespace="Microsoft.Data.Odbc"%>