ASP.NET:我如何将Aspnet_regsql引入登录控件 [英] ASP.NET: How can I introduce Aspnet_regsql to Login Controls
问题描述
我在我的SQL Server中设置 aspnet_regsql
,名为 SYM\SQLEXPRESS
,但它位于远程计算机中。如你所知,有一些表自动创建(用户,角色,成员身份等)。如何将asp.net登录控件引入此数据库。是否应该更改 web.config
中的内容? (SYM意味着10.10.10.8)
我wathched这个视频系列。 http://www.asp.net/security/videos
他们只是将登录控件拖放到页面。和数据库自动创建。但是创造了他们本地的机器。我的问题是如何连接与ASP.NET登录控制和 aspnet_regsql
数据库,我有已经存在在我的远程计算机?
- 另一种方法是:
C:\Windows \Microsoft.NET\Framework \v4.0.30319
文件夹。 - 运行
aspnet_regsql.exe
- 写入服务器名称:
YourServerMachine\SQLExpress
- 选择现有数据库:
YourTargetDBName $ c
- 在Visual Studio 2010中打开WebSite。
-
使用Visual Studio 2010转到
网站
li>
-
点击
ASP.NET配置
-
可以更改您的安全性和提供程序设置。
li>
在Web.Config中进行更改
I setup aspnet_regsql
in my SQL Server called SYM\SQLEXPRESS
but it is in the remote computer. As you know, there are some tables created automaticly (Users, Roles, Membership etc). How can I introduce asp.net login controls to this database. Should I change something in web.config
? (SYM means 10.10.10.8)
I wathched this video series. http://www.asp.net/security/videos
They just drag&drop login controls in to page. And the database created automaticly. But created their local machine. My question is how can I connect with ASP.NET Login Controls and aspnet_regsql
database which I have already exists in my remote computer?
- Alternativly, go
C:\Windows\Microsoft.NET\Framework\v4.0.30319
folder. - Run
aspnet_regsql.exe
- Write Server Name:
YourServerMachine\SQLExpress
- Select Existing Database:
YourTargetDBName
(which you already have) - Click Finish.
- Open WebSite in Visual Studio 2010.
Make Changes in `Web.Config
Using Visual Studio 2010 Go to
Website
tab.Click on
ASP.NET Configuration
You can change your security and provider settings.
这篇关于ASP.NET:我如何将Aspnet_regsql引入登录控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!