首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏张志敏的技术专栏

    尝试在 Mono 3.0 下运行 ASP.NET MVC 4

    private/tmp/source/bockbuild-crypto-mono/profiles/mono-mac-xamarin/build-root/mono-3.0.10/mcs/class/System.Configuration /System.Configuration/ConfigurationSection.cs:198 at System.Configuration.Configuration.GetSectionInstance /System.Configuration/Configuration.cs:305 at System.Configuration.ConfigurationSectionCollection.get_Item /System.Configuration/ConfigurationSectionCollection.cs:68 at System.Configuration.Configuration.GetSection /System.Configuration/Configuration.cs:261 at System.Web.Configuration.WebConfigurationManager.GetSection

    1.7K20发布于 2020-08-10
  • 来自专栏wfaceboss

    配置文件的简单使用

    System.Configuration.ConfigurationSettings.AppSettings.Get("first");             或者: 首先在需使用的项目中引用:  System.Configuration            然后在后台使用的服务中导入命名空间:using  System.Configuration  则此时的访问代码如下: string fileName = ConfigurationSettings.AppSettings.Get

    57620发布于 2019-04-08
  • 来自专栏hbbliyong

    WCF发布多个服务

    System.Linq; using System.Text; using WcfServiceLibrary1; using System.ServiceModel.Configuration; using System.Configuration host.Open(); } Console.Read(); } } 这里注意引入System.Configuration

    1.2K50发布于 2018-03-05
  • 来自专栏james大数据架构

    asp.net中打印指定控件内容

    1.写一个PrintHelper类 using System; using System.Data; using System.Configuration; using System.Web; using } } 2.创建Default页: 放置一个按钮btnPrint与一个Panel,Panel中是要打印的内容 using System; using System.Data; using System.Configuration script>"); } } } 创建Print页面: 在form_load事件中调用打印事件: using System; using System.Data; using System.Configuration

    3.6K100发布于 2018-01-22
  • 来自专栏菩提树下的杨过

    Enterprise Library 4.1学习笔记1----配置应用程序块(c/s和b/s均适用)

    of the Enterprise Library Configuration Application Block on how to migrate to the new features in System.Configuration 大意是:Configuration Application Block这个模块现在已经合并到.Net 2.0 System.Configuration中了,所以EL中不再单独保留这一模块,也就是说这部分功能完全用 使用步骤: 1.先定义希望序列化保存的类,注意要继承自ConfigurationSection,示例代码如下: Code using System.Configuration; namespace ConfigTest

    60870发布于 2018-01-23
  • 来自专栏编程语言的世界

    c#读取配置文件,C#读xml配置文件,c# 配置文件,C# 读取xml

        <add key="app.update" value="https://www.gaojiufeng.cn"/>  </appSettings></configuration>(2).右键添加引用System.Configuration ,System 并且引用using System.Configuration;(3).读取配置项目int  appYear = int.Parse(ConfigurationManager.AppSettings

    1K11编辑于 2023-06-29
  • 来自专栏全栈程序员必看

    winForm连接数据库(sqlserver2005)

    ID=sa;Password=sa"></add> </appSettings> </configuration> HoverTreeSCJ 为数据库的名称 3.在项目Reference中添加引用 System.configuration 在文件中 添加引用 using System.configuration; using System.Data.SqlClient; 4

    1.7K30编辑于 2022-07-18
  • 来自专栏听雨堂

    Log4Net与Log2Console配合时中文问题的解决

    In addition the log4net project requires the following new references: System.Configuration 要点是: 转换项目 (src下的sln) 删除test项目,没有心情搞nunit了 右键单击log4net项目,配置中的NET_1_0改为NET_2_0 引用中添加一个System.configuration 编译就能通过了

    1K70发布于 2018-01-23
  • 来自专栏wfaceboss

    使用MVC实现登录功能

        使用命名空间:using System.Data;                     using System.Data.SqlClient;                   using System.Configuration Web.config所需的命名空间 using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Configuration

    1.2K40发布于 2019-04-08
  • 来自专栏.Net Core技术分享

    创建自定义配置节点(web.config和app.config都适用)

    完成自定义配置节点的结构 <custom fileName="Default.txt" maxUsers="2500" maxIdleTime="00:10:00" />   3.编程实现节点的访问 using System.Configuration using System.Configuration; namespace SampleWebConfigSection.Configuration { public class webSettingSection using System.Configuration; namespace SampleWebConfigSection.Configuration { public class baseSection using System.Configuration; namespace SampleWebConfigSection.Configuration { [ConfigurationCollection using System.Configuration; namespace SampleWebConfigSection.Configuration { public class fileSection

    1.5K20发布于 2019-09-26
  • 来自专栏李蔚蓬的专栏

    用ASP.NET做一个简单的数据流动展示

    ; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration ; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration

    80020发布于 2019-02-25
  • 来自专栏pangguoming

    C# 读写App.config配置文件的方法

    # 中的 ConfigurationManager类引用方法 c#添加了Configuration;后,竟然找不到 ConfigurationManager 这个类,后来才发现:虽然引用了using System.Configuration 后来终于找到一个解决方法,就是在解决方案资源管理器里找到类文件选择“引用”,然后右击选择“添加引用”,并且从 .net 中找到System.Configuration把它加上去就OK啦 三、appSettings 下面给出实现的代码(增加引用using System.Configuration名称空间) private void AccessAppSettings() { //获取Configuration

    10.7K90发布于 2018-03-07
  • 来自专栏NetCore

    保护连接字符串

    Northwind;server=(local);" providerName="System.Data.SqlClient" /> </connectionStrings> 从配置文件中检索连接字符串 System.Configuration Visual Basic Option Explicit On Option Strict On Imports System.Configuration Module Module1 Sub Main Then Console.WriteLine(settings.ConnectionString) End If End Sub End Module C# using System; using System.Configuration

    2.8K50发布于 2018-02-01
  • 来自专栏深蓝居

    如何将asp.net的后台cs代码移动到页面上

    div>

    </form> </body> </html> 对应的后台代码是: using System; using System.Data; using System.Configuration System.Web.UI.Page" %> <%@ Import Namespace="System" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="<em>System.Configuration</em>

    1.5K20编辑于 2022-06-15
  • 来自专栏wfaceboss

    反射学习由浅入深

    最终总结: 代码为(通过配置文件来配置字符串)  配置文件的使用:  第一需要在解决方案的使用项目中添加引用(System.Configuration)  第二在使用类中添加命名空间(using System.Configuration System.Text; using System.Threading.Tasks; using System.Reflection; using myReflection.Interface; using System.Configuration

    59030发布于 2019-04-08
  • 来自专栏liulun

    C#程序删除自身

    System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Configuration

    58610编辑于 2022-05-09
  • 来自专栏跟着阿笨一起玩NET

    .Net下收发邮件第三方公共库

    下面是接收邮件的类文件   using System;  using System.Data;  using System.Configuration;  using System.Web;  using m.BodyHtml);              //HTML格式内容      //}   }  下面是调用上面接收类的  using System;  using System.Data;  using System.Configuration

    1.3K10发布于 2018-09-18
  • 来自专栏sofu456

    stackexchange.redis

    ControlSystem.Log; using StackExchange.Redis; using System; using System.Collections.Generic; using System.Configuration

    59510发布于 2020-02-25
  • 来自专栏GreenLeaves

    Asp.Net webconfig中使用configSections的用法

    WebSiteConfig> 自定义节点的定义规则要和上面的configSections的定义规则保持一致 最后编写一般处理程序,按照一定的规则获取我们的自定义节点的信息 using System; using System.Configuration } } } ok,做完这几步我们可以开始愉快的使用自定义节点的信息了 using System; using System.Collections.Generic; using System.Configuration

    930100发布于 2018-01-24
  • 来自专栏李蔚蓬的专栏

    ASP.NET | 从零到一实战分析对后台数据库增加数据、模糊查找、精确查找并展示

    System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using System.Data.SqlClient; using System.Configuration ; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Configuration

    1.1K40发布于 2019-02-25
  • 领券