http://www.csdn.net/develop/read_article.asp?id=21701
解决方案 »
- 关于XPATH的一个问题
- |zyciis| C# 比较长的二进制的一串字符串,如何转换成一串16进制的字符串。C#没有方法吗?难道还要自己来写
- 大侠们,请进来看看!Xml节点操作Web.config后的刷新问题
- reportviewer导出错误HRESULT:0x800A003A
- C#派生类,父类的一个问题
- ExecuteScalar 要求已打开且可用的连接。连接的当前状态为已关闭
- VC8.0 里开发的OCX控件为什么在开发机上能注册,但是在别的机器上都注册不了,提示LoadLibray失败.
- 今天要离开公司,继续去读书,散分~~
- 大家推荐一本asp.net用C#写的中级书!
- The underlying connection was closed: An unexpected error occurred on a receive.
- DataGrid控件换行问题?
- 关于String.Remove的问题
{
SqlCommand cmd=new SqlCommand();
cmd.Connection=this.conn ;
if((strParams!=null)&&(strParams.Length!=strValues.Length) )
throw new System.Exception("查询参数和值不对应!");
cmd.CommandText=strSql;
if(strParams!=null)
{
for(int i=0;i<strParams.Length;i++)
cmd.Parameters.Add(strParams[i],strValues[i]);
}
cmd.ExecuteNonQuery();
}