web.config中添加 在OleDbHelper.cs中添加 Code public static readonly string DBName = ConfigurationManager.AppSettings.Get("DBName").ToString(); public static readonly string DBDriver = ConfigurationManager.AppSettings.Get("DBDriver").ToString(); public static string ConnString = DBDriver + HttpContext.Current.Server.MapPath(HttpContext.Current.Request.ApplicationPath + "/DataBase/") + DBName;
posted on 2009-08-22 10:06  E商.NET  阅读(178)  评论(0)    收藏  举报