such as:
this.sqlCommand1.Parameters.Add("@id",SqlDbType.Int ,4,"id");
this.sqlCommand1.Parameters["@is"].Value=s2;請參考msdn中有關語法.
this.sqlCommand1.Parameters.Add("@id",SqlDbType.Int ,4,"id");
this.sqlCommand1.Parameters["@is"].Value=s2;請參考msdn中有關語法.
this.sqlCommand1.Parameters.Add("@ID",s2);
更换成
this.sqlCommand1.Parameters["@ID"].Value=s2;
即可.