OleDbParameter outPutParament = new OleDbParameter(); //定义一个SQL参数量
outPutParament.ParameterName = "@affectNumber"; //存入以参数名称
outPutParament.DbType = DbType.Int32;
//outPutParament.Size = 100;
outPutParament.Direction = ParameterDirection.Input; //指定参数是输出参数
//Direction指定该参数是只输入参数或只输出参数或双向参数或存储过程返回参数
CommandDB.Parameters.Add(outPutParament); //将此参数添加到CommandDB
//return CommandDB.ExecuteNonQuery();
return CommandDB.ExecuteNonQuery();执行到return 时 报下面这个错误
System.Data.OleDb.OleDbDataAdapter 內部錯誤: 無效的參數存取子: 1 BADBINDINFO
解决方案 »
- 在ASP.NET中,哪个对象能够保持页面级的状态。
- 如何捕获ScriptManager.RegisterClientScriptBlock弹出的对话框的点击“确定”事件
- GridView如何点击某一行弹出对话框进行编辑
- Dataset中 如何实现模糊查询 着急ing
- C# session 存不了Table
- 将datatable绑定到gridview,在模板列增加了上移和下移的功能,请问如何实现?
- 为什么我iis绑定好网站后可以通过ip自己浏览到但别人通过ip却显示不了
- asp.net 中 gridview 显示数据问题
- 网站被盗链问题
- 类库项目里能加web页?不同网站项目如何互相访问web页?
- 问个小问题
- asp.net URLRewriter url重写
ParameterDirection.Output
吧