当前位置:编程学习 > C#/ASP.NET >>

二次开发一个网站 读取配置中的字符串 |DataDirectory|\XXX.mdb 求解如何读取



<connectionStrings>
<add name="ss_connstr" connectionString="|DataDirectory|\XXX.mdb"/>
</connectionStrings>


rt --------------------编程问答-------------------- 求解他这个是肿么存的   and肿么取这个字符串 |DataDirectory| --------------------编程问答--------------------
XSS
引用
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
引用
. --------------------编程问答-------------------- |DataDirectory| 默认 app_data 目录吧 --------------------编程问答--------------------
引用 3 楼 hunter103 的回复:
|DataDirectory| 默认 app_data 目录吧
嗯   我再写个conn的话该肿么写? --------------------编程问答--------------------
引用 3 楼 hunter103 的回复:
|DataDirectory| 默认 app_data 目录吧
  这样的配置不懂咋调、、   --------------------编程问答-------------------- 可能只是web.config里面存的一段字符吧。取出来有再做处理。我觉得。
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,