覆盖ASP.NET的默认配置并使用自定义配置, [英] Overriding the default configuration of ASP.NET and use a custome one,
问题描述
Hallo亲爱的所有人,
我无法通过一个问题来完成一个项目.我曾经尝试过制作
明确我的问题,但我没有得到充分的回答.
我的问题从这里开始,有一个包含所有内容的数据库,它是
完全的.我正在认真开发的项目位于此数据库中,
现在,我希望所有内容都来自此数据库,例如:用户名和
密码.我希望ASP.NET的配置依赖于此
数据库.换句话说,我不想使用默认的aspnetdb和
它的台词了.我该如何配置?
Thanks
Hallo Dear All,
I couldn''t accomplish a project by a single problem. I did try before to make
out clear my question but I didn''t get adequete answer.
My question starts here, there is a database that have everything, it is
complete. The project I am curruntly developing resides on this database,
now, I want everything to come from this database, for example: username and
password. I wished the configuration of ASP.NET to be dependant on this
database. In other words, I don''t want to use the default aspnetdb and
its tablse any more. How can I configure this?
Thanks
推荐答案
创建您自己的指向数据库的成员资格提供程序.更改您的web.config以使用您的成员资格提供程序
在这里看看,应该给您一个很好的起点.
http://www.15seconds.com/issue/050216.htm [
Create your own membership provider that points at your database. Change your web.config to use yur membership provider
Have a look here, should give you a good starting point.
http://www.15seconds.com/issue/050216.htm[^]
这篇关于覆盖ASP.NET的默认配置并使用自定义配置,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!