新手求助:高手指点

sunhelong 2009-03-23 12:36:03
错误 1 找不到类型或命名空间名称“system”(是否缺少 using 指令或程序集引用?) E:\www\Default.aspx.cs 4 7 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();
}
}
...全文
64 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
sunhelong 2009-03-23
  • 打赏
  • 举报
回复
改为
using System.data.oledb;
也不行是同样的错误
greymouseyu 2009-03-23
  • 打赏
  • 举报
回复
大小写问题。。。汗
benbirdar 2009-03-23
  • 打赏
  • 举报
回复
[Quote=引用楼主 sunhelong 的帖子:]
错误 1 找不到类型或命名空间名称“system”(是否缺少 using 指令或程序集引用?) E:\www\Default.aspx.cs 4 7 E:\www\


system要大些S开头,
错误在你的引用第四行
你写的是using system.data.oledb;
应该是:

using System.data.oledb;
benbirdar 2009-03-23
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 sunhelong 的回复:]
改为
using System.data.oledb;
也不行是同样的错误
[/Quote]

改了之后报的是什么错误?
改了之后如果还错的话,就不是你原先的错误了!你居然说还是同样的错误!!!
AuC 2009-03-23
  • 打赏
  • 举报
回复
是不是缺少引用程序集
错误 4 命名空间“System.Xml”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?) E:\学习进度\321CSDN论坛\web\Default2.aspx.cs 12 18 E:\...\web\

62,268

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧