.net access config 相对路径
1 <configuration> 2 <connectionStrings> 3 <add name="ConStr" connectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source=|DataDirectory|\myBlog.mdb" 4 providerName="System.Data.OleDb"/> 5 </connectionStrings>
相对于写绝对路径。在constr中写入|DataDirectory|,程序读取时,在会将|DataDirectory|匹配为根路径下的appcode
不会飞的鱼~~~~梦想总要有的,万一实现了呢!
尊重他人劳动成功。转载请注明出处! http://www.cnblogs.com/flyfishing/
尊重他人劳动成功。转载请注明出处! http://www.cnblogs.com/flyfishing/