public void ReviseModifyCatalog() { SqlDataReader dataReader = null; BBSClass BBS = new BBSClass(); try { if (m_CatalogID != "") { dataReader = BBS.GetModifyBBSCatalog(Int32.Parse(m_CatalogID)); dataReader.Read(); this.TxtCatalogName.Value = dataReader["catalog_name"].ToString(); this.TxtCatalogDescription.Value = dataReader["catalog_description"].ToString(); BBS = null; dataReader.Close(); dataReader = null; } } catch (Exception ex) { UDS.Components.Error.Log(ex.ToString()); Server.Transfer("../../Error.aspx"); } finally { if (dataReader != null) { dataReader.Close(); } } }