找不到类型或命名空间名称“database”(是否缺少using指令或程序集引用)我用的是VS2005拜托各位大神
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.We...
using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.OleDb; public partial class zhuye : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { string xm = TextBox1.Text; string mm = TextBox2.Text; string str = "select * from Users where NName='" + xm + "' and Pwd='" + mm + "'"; database db = new database(); 这里出错 OleDbDataReader dr = db.getdatadr(str); if (dr.Read()) { Response.Write("欢迎进入!"); TextBox1.Text = ""; } else { Response.Write("用户名不存在或密码不正确!"); TextBox1.Text = ""; } } }
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询