web页面郁闷了Failed to convert parameter value from a String to a Int32
SqlConnection myConnection = new SqlConnection(@"user id=sa;password=z7;initial catalog=tempdb;data source=10.0.6.19;Connect Timeout=30");
string strDelete = "select count(id) from lianxi_dw where uid=@m and dw=@n ";
SqlCommand cmd = new SqlCommand(strDelete, myConnection);
cmd.Parameters.Add("@m", SqlDbType.Char).Value = Session["UserName"].ToString();
cmd.Parameters.Add("@n", SqlDbType.Int).Value = Request.QueryString["s"].ToString();
myConnection.Open();
string s = cmd.ExecuteScalar().ToString();
单步跟踪发现Failed to convert parameter value from a String to a Int32."