SqlConnection con = new SqlConnection(createCon);
string sql = "update shop set content=@content where id=1";
SqlCommand cmd = new SqlCommand(sql, con);
con.Open();
cmd.Parameters.Add("@content", SqlDbType.Text);
cmd.Parameters["@content"].Value = FCKeditor1.Value;
//try
//{
cmd.ExecuteNonQuery();
string sql = "update shop set content=@content where id=1";
SqlCommand cmd = new SqlCommand(sql, con);
con.Open();
cmd.Parameters.Add("@content", SqlDbType.Text);
cmd.Parameters["@content"].Value = FCKeditor1.Value;
//try
//{
cmd.ExecuteNonQuery();
解决方案 »
- oledbdatareader 无法将带 [] 的索引应用于“object”类型的表达式
- 在form窗体上,动态添加控件的问题(winform)。
- 请各位帮忙,顶者有分
- 大家来谈谈通用网站发布系统的开发啊!对每个有网站开发方面的应该都有帮助!
- 【So Easy Problem】ASP.NET后台代码中如何来获取前台页面用户用的倒是什么分辨率
- 怎样获得当前年月日的第一天和最后一天 ,比如今天:04/08/09~~04/08/31
- 求救_配置ASP.NET案例TheBeerHouse出问题
- VS2012 发布asp.net 项目问题
- 控件问题如何解决?
- DataGrid与Post/Get。。。
- 问个问题,随便散分
- asp.net中有操作时怎样自动延长cookies过期时间
declare @ptrval1 varbinary(16)
select @ptrval1=textptr(AA) from A where XTBH=@XTBH
if(textvalid('A.AA,@ptrval1)=1)
updatetext A.AA @ptrval1 0 null @AA
string sql = "update shop set content=@content from shop where id=1";
SqlCommand cmd = new SqlCommand(sql, con);
con.Open();
cmd.Parameters.Add("@content", SqlDbType.Text);
cmd.Parameters["@content"].Value = FCKeditor1.Value;
//try
//{
cmd.ExecuteNonQuery();还要看看类型是否匹配,若是字段不允许空,你的FCKeditor1.Value 是不是null