使用asp.net与Windows注册表进行基本交互 [英] basic interfacing with the windows registry with asp.net

查看:71
本文介绍了使用asp.net与Windows注册表进行基本交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人知道如何将应用程序数据库名称写入Windows系统注册表吗?

我在带有SQL Server 2008的asp.net中工作,需要将数据库名称写入/记录到系统注册表中,以便在打开注册表编辑器时出现我们的数据库名称.

我正在使用Windows7.

在此先感谢

hey

Does anyone know how to write the application database name to the windows system registry?

Im working in asp.net with sql server 2008 and need to have the database name written/recorded to the system registry so that when the registry editor is opened, our database name is present.

Im working with windows7.

Thanks in advance

推荐答案

为什么需要将其存储在注册表中?首选配置文件如web.config.
Why do need to store it in the registry? Configuration files such as web.config are the preferred method.


这篇关于使用asp.net与Windows注册表进行基本交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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