ls_sql="update dba.custom_contact ";
ls_sql=ls_sql+ "set re=\'"+TEXTAREA1.Value.ToString()+"\' ";
ls_sql=ls_sql+" where custno=\'"+this.cs_custno+"\'";
try
{
System.Data.OleDb.OleDbCommand updatecmd= new
System.Data.OleDb.OleDbCommand(ls_sql,this.oleDbConnection1);
this.oleDbConnection1.Open();
if (updatecmd.ExecuteNonQuery()>0)
{ this.msg_box("udpate successfully");}
}
catch (System.Exception e)
{
this.msg_box(ls_sql);
this.msg_box("数据存盘出错,请与系统管理员联络!"+e.Message);
}
ls_sql=ls_sql+ "set re=\'"+TEXTAREA1.Value.ToString()+"\' ";
ls_sql=ls_sql+" where custno=\'"+this.cs_custno+"\'";
try
{
System.Data.OleDb.OleDbCommand updatecmd= new
System.Data.OleDb.OleDbCommand(ls_sql,this.oleDbConnection1);
this.oleDbConnection1.Open();
if (updatecmd.ExecuteNonQuery()>0)
{ this.msg_box("udpate successfully");}
}
catch (System.Exception e)
{
this.msg_box(ls_sql);
this.msg_box("数据存盘出错,请与系统管理员联络!"+e.Message);
}
解决方案 »
- 求助一下 反编译一下这两个dll里边的weblocation()的实现
- 网站中的路径问题,图片生成
- 一个简单功能的实现
- C#基础知识,类型转换问题!
- AjaxPro怎样获取服务器端的异常信息
- VSS问题: 怎样才可以下载 别人更新过的文件,而不是下载所有?
- 思考web2.0与国内(部分)传统
- 【新人菜问题】怎么样根据变量,来动态设置dropdownlist的默认选项?
- 【如何判断访问网站的主机是不是就是该服务器?】
- 未在本地计算机上注册“Micorsoft.Jet.OleDB.4.0”提供程序请问怎么解决这个问题
- CSDN有屎以来分量超重的帖子!头版头条!
- .Net里如何设置如同asp里的application变量(C#)
main problem may that my database is Sybase ASA7.03 , it's may not very get
well with oledb in .net platform. I gave up oledb connection and changed to
ODBC, it's looks working.Thanks for all again.