解决方案 »
- 对某一网站验证码的研究。
- text_string.Replace("\n","\n;")为什么没结果?
- C# WinForm如何实现像酷狗右边“音乐分类”、“歌手列表”那样功能的控件?
- 关于txt导入sql server( winform)
- VS2003 C# 与2005的一个Global.asax 文件如何使用的问题!
- CSDN 登陆页面上的“校验码”是干嘛用的?
- 紧急求教:关于timer1_Tick中调用WebServices的问题(winform)
- Response.ContentType = "text/plain" 问题
- 發送了post數據以後,再次請求頁面時的問題。
- .net的安装问题,在线,救急。
- C# 多线程和界面交互问题
- wpf实现图片的反色放大的效果
我能完成账户的登入 注册等工作,
而且添加工作能完成。
就是删除后 存盘(button3)出现问题。
SqlCommand comm = new SqlCommand(commStr,conn);
SqlDataAdapter sda = new SqlDataAdapter();//这句给你注释了的
SqlCommandBuilder scb = new SqlCommandBuilder(sda);
sda.Update(ds.Tables[0]);
SqlDataAdapter sda = new SqlDataAdapter();
然后设断点,看还有没有错误,有错误时出在哪句?
SqlConnection myConn = new SqlConnection(myConnection); SqlDataAdapter myDataAdapter = new SqlDataAdapter();
myDataAdapter.SelectCommand = new SqlCommand(mySelectQuery, myConn);
SqlCommandBuilder cb = new SqlCommandBuilder(myDataAdapter);
myConn.Open();
DataSet ds = new DataSet();
myDataAdapter.Fill(ds, myTableName);
myDataAdapter.Update(ds, myTableName);
myConn.Close();