SqlCommand cmd = new SqlCommand("select * from login where username='"+userName+"' and userpwd='"+userPwd+"'",con);
int count = Convert.ToInt32(cmd.ExecuteScalar());
输入字符串的格式不正确。
...全文
909打赏收藏
asp.net 字符串格式不正确
SqlCommand cmd = new SqlCommand("select * from login where username='"+userName+"' and userpwd='"+userPwd+"'",con); int count = Convert.ToInt32(cmd.ExecuteScalar()); 输入字符串的格式不正确。