欢迎光临
我们一直在努力

C# 连接web.config文件

Web.config文件 C# 连接web.config文件<?xml version="1.0"?><!--    注意: 除了手动编辑此文件以外,您还可以使用    Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的     “网站”->“Asp.Net 配置”选项。    设置和注释的完整列表在    machine.config.comments 中,该文件通常位于    WindowsMicrosoft.NetFrameworkv2.xConfig 中--><configuration><appSettings>       <add key="Conntction" value="server=技术部;database=mb;uid=sa;pwd=;"/>    </appSettings>    <connectionStrings/>     读取using System.Configuration;string strConnection = ConfigurationManager.AppSettings["Conntction"];

赞(0)
未经允许不得转载:福利吧|福利社|fuliba » C# 连接web.config文件

相关推荐

  • 暂无文章