asp.net高级教程(二)- 转换编程思维(3) get { return m_intUserCount ; } } //构造函数 public BBS(string a_strTitle) { // // TODO: Add ConstrUCtor Logic here // m_strTitle = a_strTitle ; //读取数据库 MyConnection myConn = new MyConnection() ; SQLCommand myCommand = new SQLCommand() ; myCommand.ActiveConnection = myConn ; myCommand.CommandText = "up_GetBBSInfo" ; //调用存储过程 myCommand.CommandType = CommandType.StoredProcedure ; try { myConn.Open() ;