asp.net高级教程(三)-实战篇(7) } catch(SQLException e) //如果出现异常 { throw(new Exception("数据库异常:" + e.Message)) ; } //返回结果 return bExists ; } //重载,根据用户ID查找用户 public bool GetUser(int a_intUserID) { bool bExists = false ; MyConnection myConn = new MyConnection() ; try { myConn.Open() ; SQLCommand myCommand = new SQLCommand() ;