// ---------------------------- Common.GetConnectionString ------------------- public static string GetConnectionString(AutoCoder.BasePage InPage) { System.IO.StreamReader reader = null; string connString = null; string path = InPage.MapPath("ConnectString.txt"); try { try { reader = new System.IO.StreamReader(path); connString = reader.ReadLine( ); } catch (System.IO.IOException excp) { throw(new ApplicationException("GetConnectionString error. " + excp.Message)); } } finally { if (reader != null) { reader.Close( ); } } return(connString); }