ASP.NET:我怎样才能引进Aspnet_regsql到登录控件 [英] ASP.NET: How can I introduce Aspnet_regsql to Login Controls

查看:156
本文介绍了ASP.NET:我怎样才能引进Aspnet_regsql到登录控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置 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 数据库,我的已存在在我的远程计算机?


解决方案

  1. Alternativly,转到 C:\\ WINDOWS \\ Microsoft.NET \\框架\\ v4.0.30319 文件夹

  2. 运行 aspnet_regsql.exe的

  3. 写入服务器名称: YourServerMachine \\ SQLEx preSS

  4. 选择现有的数据库: YourTargetDBName (你已经有了)

  5. 单击Finish(完成)。

  6. 开启网页在Visual Studio 2010。

  7. 请在`Web.Config中更改


  8. 使用Visual Studio 2010转到网​​站标签。


  9. 点击 ASP.NET配置


  10. 您可以更改您的安全和提供者设置。


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?

解决方案

  1. Alternativly, go C:\Windows\Microsoft.NET\Framework\v4.0.30319 folder.
  2. Run aspnet_regsql.exe
  3. Write Server Name: YourServerMachine\SQLExpress
  4. Select Existing Database: YourTargetDBName (which you already have)
  5. Click Finish.
  6. Open WebSite in Visual Studio 2010.
  7. Make Changes in `Web.Config

  8. Using Visual Studio 2010 Go to Website tab.

  9. Click on ASP.NET Configuration

  10. You can change your security and provider settings.

这篇关于ASP.NET:我怎样才能引进Aspnet_regsql到登录控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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