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;

相关文章:

  • 2021-12-19
  • 2021-11-30
  • 2022-02-11
  • 2021-06-13
  • 2021-12-06
  • 2021-09-26
猜你喜欢
  • 2022-02-16
  • 2022-01-17
  • 2021-11-27
  • 2021-07-19
  • 2021-07-29
  • 2022-12-23
  • 2021-10-03
相关资源
相似解决方案