用string 读取能读全吗?读全怎么用?
解决方案 »
- asp 如何写弹出登录窗口,背景的页面保持不变
- PictureBox 显示大图片
- 关于membership密码问题
- 关于取消页面抖动的问题?
- UpdateProgress 在上传时怎么用 配合 FileUpload
- GridView问题!!!!!!顶者有分
- 在线求解:关于Dropdownlist联动的问题,查遍了整个CSDN都没解决。
- 怎样在前台格式化挷定的数据?
- 初学者,很弱的问题,还望高手解答?
- SqlParameterCollection 仅接受非空的 SqlParameter 类型对象,不接受 SqlParameter[] 对象
- 数据导入
- *********************TreeView 问题(您真的熟悉TreeView控件吗?)
oText.InnerText=(string)SqlHelper.ExecuteScalar(strConn,CommandType.Text,strQuery); --update
string strCmd="update tb set ntext=@content where id=1";
int ret=0;
SqlParameter[] param=new SqlParameter[]{
SqlHelper.MakeInParam("@content",SqlDbType.NText,0,oText.InnerText)
};
try
{
ret=(int)SqlHelper.ExecuteNonQuery(strConn,CommandType.Text,strCmd,param);
}
catch(Exception ex)
{
Response.Write(ex.ToString());
} if(ret!=0)
{
ShowText();
}
else
{
Response.Write("failure!");
}