在Web.config中写入连接字符串时有些混乱 [英] A bit confusion in writing conncetion string in Web.config

查看:66
本文介绍了在Web.config中写入连接字符串时有些混乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
在web.config中编写连接字符串时,有时我们会在appsettings标记和连接字符串标记中写入.主要区别是什么?

Hello every one!
While writing connection string in web.config we sometimes write in appsettings tag and connection string tag.what is the main difference?

推荐答案

会话,成员资格,个性化和角色Manager是一些功能,这些功能依赖于您在webconfig的connectionstring部分中声明连接.

从我读到的内容中可以看到,发布asp.net 2.0时添加了connectionstring部分,以澄清正在发生的事情.它还增加了一些功能,使其能够通过连接和我上面提到的内容进行枚举.

查看 http://www.aspcode.net/Connectionstrings-in-ASPNET-20.aspx对其进行更深入的了解.
Session, Membership, Personalization, and Role Manager are some functions that rely on you declaring your connections in the connectionstring section of the webconfig.

From what I''ve read the connectionstring section was added in when asp.net 2.0 was released to add clarification to what was going on. It also adds some functionality to being able to enumerate through connections and what I mentioned above.

Check out http://www.aspcode.net/Connectionstrings-in-ASPNET-20.aspx for a more in depth look at it.


这篇关于在Web.config中写入连接字符串时有些混乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆