[求助]DataReader问题
using System;using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
SqlConnection nwindConn=new SqlConnection();
nwindConn.ConnectionString="data source=(local);initial catalog=northwind;user id=sa;password=45548;integrated security=false;persist security info=false";
nwindConn.Open();
SqlCommand catCMD=new SqlCommand("select CategoryID,CategoryName from Categories",nwindConn);
SqlDataReader myReader = catCMD.ExecuteReader();
问下大家为什么会出现下面这个问题呢
无法将类型“System.Data.SqlClient.SqlDataReader”隐式转换为“sql.SqlDataReader”
本人用的是ASP.NET1.1