触摸屏租赁
Touch screen rental
广告机租赁
Advertising rental
机器人租赁
Robot leasing
 当前位置:首页 > > asp.net连接access+动软代码生成器生成的Web.config设置

一、Web.config设置

<add key="ConnectionString" value="server=127.0.0.1;database=codematic;uid=sa;pwd=1"/>
改为
add key="ConnectionString" value="provider=microsoft.jet.oledb.4.0;data source= "/>
    <add key="dbPath" value="~/App_Data/Data.mdb"/>

二、DbHelperOleDb.cs设置
加:using System.Web; 

public static string connectionString = PubConstant.ConnectionString;  
改为
public static string connectionString = ConfigurationManager.AppSettings["ConnectionString"].ToString() + HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["dbPath"]) + ";";           


 


工作室地址:重庆石桥铺电脑城B座 | 微信:z35544216 | 网址:www.35544216.com