【问题标题】:How to write a password which contain "&" in app.config [duplicate]如何在app.config中编写包含“&”的密码[重复]
【发布时间】:2013-08-06 09:04:36
【问题描述】:

如何在app.config中编写包含“&”的密码

<add connectionString="Data Source=x.x.x.x;Initial Catalog=Testing002;User Id=hello;Password=&a:;" name="ConString"/>

【问题讨论】:

    标签: c# app-config


    【解决方案1】:

    使用&amp;amp; 而不是&amp;amp;

    【讨论】:

    • 还是一样的错误,有什么区别
    • @ControlPoly:不同的是 &amp;amp; 是您应该在 XML 文件中编码 &amp;amp; 的方式。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-05
    • 1970-01-01
    相关资源
    最近更新 更多