将CreateUserWizard控件与外部数据库连接 [英] Connecting CreateUserWizard Control with external database

查看:65
本文介绍了将CreateUserWizard控件与外部数据库连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试使用ASP.NET设计我的第一个网站
我在添加(创建用户向导控件)时遇到问题-Visual Studio 2010支持的一种登录控件,它使您可以在数据库中创建新的用户帐户,并自动创建一个新的.mdf文件来存储用户数据. br/>
所以问题是:
我如何从此控件中插入新用户并将其保存在我确定的数据库(.mdf文件)中,因为我会将用户数据与我完整的sql server套件中的另一个表连接起来,所以我不希望由Visual Studio自动创建的文件.
我该怎么做?

Hi,

I''m trying to design my first web by using ASP.NET
I have a problem in adding (create user wizard control) - one of logs in controls supported by visual studio 2010, it lets you make a new user account in database and a new .mdf file is created automatically to store the users data.

So the question is:
How can I insert new user from this control and save it inside a database (.mdf file) that I determine, because I will connect the users data with another tables in my complete suite of sql server, so I don''t want the file that''s created by visual studio automatically.
How can I do that?

推荐答案

我认为您是指自定义表单

阅读此内容

http://msdn.microsoft.com/en-us/library/aa289147 (v = vs.71).aspx [
I think you are refering to custom form

read this

http://msdn.microsoft.com/en-us/library/aa289147(v=vs.71).aspx[^]

Please read this article posted on microsoft site.

If this helpful then accept the answer and vote it otherwise I have logic with me and I will pass to you then

--Rahul D.


我尝试了另一种解决方案,方法是编辑web.config文件
在connectionString中.

感谢您的解决方案,但这不是我想要的.
I have tried another solution by editing the web.config file
in connectionString.

Thanks for your solution, but it is not what I want.


这篇关于将CreateUserWizard控件与外部数据库连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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