摘要: public void Insert() { string insertstr = string.Format("insert into I_samtype(btid,stname) values('{1}','{2}')", _btid, _stname); DB.run(insertstr); }我定义了上面的一个插入一条记录的方法Insert(),在一个button的click事件中调用这个方法,运行程序,点击button按钮,弹出这样的错误:“索引(从零开始)必须大于或等于零,且小于参数列表的大小的错位问题”找了一下原因,最终终于找到 阅读全文
posted @ 2011-05-05 10:38 kdkler 阅读(6912) 评论(0) 推荐(1)
我的博客   我的时间线   自定义科技