web.config 写有sql的连接字符串,
如 <add key="ConnStr" value="data source=china33\Hf;user id=sa;password=123;Unicode=True;"/>连接服务器名带有斜杠 ,运行就会有错误 ,改如何解决。 前提服务器名不能改
如 <add key="ConnStr" value="data source=china33\Hf;user id=sa;password=123;Unicode=True;"/>连接服务器名带有斜杠 ,运行就会有错误 ,改如何解决。 前提服务器名不能改
或者
<add key="ConnStr" value=@"data source=china33\Hf;user id=sa;password=123;"/>