我在access数据库中的字段的类型是长整形,在使用参数的时候:
com.Parameters.Add("@fRealityPrice", OleDbType.Integer)
com.Parameters("@fRealityPrice").Value = CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text
不对,改:
com.Parameters("@fRealityPrice").Value = ctype(CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text,Integer)
不对,改:
然后我在系统中查询出来的字段类型是:Decimal,然后用:
com.Parameters.Add("@fRealityPrice", OleDbType.Decimal)
com.Parameters("@fRealityPrice").Value = ctype(CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text,Decimal)
统统都是系统提示错误:"标准表达式中数据类型不匹配。" 究竟该用什么东西?
com.Parameters.Add("@fRealityPrice", OleDbType.Integer)
com.Parameters("@fRealityPrice").Value = CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text
不对,改:
com.Parameters("@fRealityPrice").Value = ctype(CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text,Integer)
不对,改:
然后我在系统中查询出来的字段类型是:Decimal,然后用:
com.Parameters.Add("@fRealityPrice", OleDbType.Decimal)
com.Parameters("@fRealityPrice").Value = ctype(CType(e.Item.Cells(0).FindControl("TextBoxfRealityPrice"), TextBox).Text,Decimal)
统统都是系统提示错误:"标准表达式中数据类型不匹配。" 究竟该用什么东西?
解决方案 »
- 求采集程序代码~~~~~~~~~~
- 急 !!寻求比较简单的导航菜单
- 为什么文本控件有选不中的现象
- 这个弹出对话框的特效在后台.cs怎么实现? 在线散分..
- 如何让Datagrid 中的某行 实现合计
- 紧急求救:怎样用JavaScript描述 DataGrid中按钮的名字(即外观显示的字符)?(按钮为模板列)
- 在cd-rom上面构建我们的asp.net应用程序(不需要iis的支持)
- 思归大哥,我是上午你帮我解答Session存储dataSet的,我想在问你一下,我动态添加进去后,我怎么删除掉(在存数据库以前)?
- 谁给我asp.net做的网上书店的原代码?
- 给一点建议菜鸟:ASP.NET用VB.NET好还是C#好!
- VS.NET不能创建也不能打开项目。
- 为什么这行程序在我本机子上好好的!但到了服务器上就不行了!!点击按纽执行这行程序没有任何反应!!!急!
同样的错误
参考:
http://support.microsoft.com/default.aspx?scid=kb;en-us;320435估计你的代码有问题
有这个文档,就不出错误了。