初学者:帮帮忙 对高手很简单
错误 1 找不到类型或命名空间名称“OleDbconnection”(是否缺少 using 指令或程序集引用?) E:\www\Default.aspx.cs 34 13 E:\www\
错误 2 找不到类型或命名空间名称“OleDbconnection”(是否缺少 using 指令或程序集引用?) E:\www\Default.aspx.cs 34 49 E:\www\
using System;
using System.Configuration;
using System.Data;
using System.Data.OleDb;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void RadioButton1_CheckedChanged(object sender, EventArgs e)
{
}
protected void TextBox14_TextChanged(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Label1.Text= TextBox14.Text;
TextBox14.Text = "";
string strconnection = "provider=microsoft.jet.oledb.4.0;"; strconnection += @"data Source=e/www/db1.mdb";
OleDbconnection objconnection = new OleDbconnection(strconnection);
string myExecuteQuery = "insert into 基本信息(编号,姓名,年龄,联系电话手机,联系电话固定) values('" + TextBox14.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox8.Text + "','"+TextBox9+"')";
objconnection.open();
objconnection.close();
}
}