SqlCommand cmd = new SqlCommand("Update dbo.guestInfo set Reply = '"+ this.txtContent.Text+"' where ID = "+ ID.ToString() +"", conn);
ID是什么类型的?
ID是什么类型的?
解决方案 »
- 请问定义var变量有什么好处,感觉倒不方便了啊
- 为什么csdn的下载区的东西下载不了
- datagrid编辑行的问题
- C# POST HTTPS 的问题,在代码中怎么知道客户端证书已经安装?
- 打听一下有没有兄弟的公司是做酒店管理类软件的?
- 求助,c#不能导入大于100KB的文件到oracle的BLOB字段中
- [Help]请教httpwebrequest取网页超时时,如何用abort方法来取消请求?!!急。
- 网页中datagrid添加控件后,如何控制哪?
- 请问用.net2002编译出来的程序能否使用framework 1.1
- .NET 要加油了!!!找工作见闻!!!
- C#讲解windows api的书
- C# 开发 水晶报表预览正常 打印只有表格线 求高手指点
SqlCommand cmd = new SqlCommand("Update dbo.guestInfo set Reply = '"+ this.txtContent.Text+"' where ID = '"+ int.Parse(ID) +"'", conn);
string sql="Update dbo.guestInfo set Reply ='"+ this.txtContent.Text+"' where ID = "+ ID.tostring()
SqlCommand cmd = new SqlCommand("Update dbo.guestInfo set Reply = '"+ this.txtContent.Text+"' where ID = "+ ID.ToString() +"", conn);