ASP.NET:我怎样才能引进Aspnet_regsql到登录控件 [英] ASP.NET: How can I introduce Aspnet_regsql to Login Controls
问题描述
我设置 aspnet_regsql
在我的SQL Server名为 SYM \\ SQLEX $ P $干燥综合征
,但它是在远程电脑。如你所知,有全自动创建(用户,角色,成员资格等)一些表。我怎么能介绍asp.net登录控件到这个数据库。我应该改变的web.config
的东西吗? (SYM意味着10.10.10.8)
我wathched这个视频系列。 http://www.asp.net/security/videos
他们只是拖动和放大器;下降的登录控件中的页面。和数据库全自动创建。但是,创建了本地计算机。我的问题是如何与ASP.NET登录控件连接和 aspnet_regsql
数据库,我的已存在在我的远程计算机?
- Alternativly,转到
C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319
文件夹 - 运行
aspnet_regsql.exe的
- 写入服务器名称:
YourServerMachine \\ SQLEx preSS
- 选择现有的数据库:
YourTargetDBName
(你已经有了) - 单击Finish(完成)。
- 开启网页在Visual Studio 2010。
-
请在`Web.Config中更改
-
使用Visual Studio 2010转到
网站
标签。 -
点击
ASP.NET配置
-
您可以更改您的安全和提供者设置。
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屋!