帮助ASP.NET成员资格 [英] Help with ASP.NET Memberships

查看:78
本文介绍了帮助ASP.NET成员资格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我第一次尝试使用ASP.NET会员资格,可以使用一些

帮助。


我正在跟进一本书,建议我在VS 2005中使用Web应用程序

管理工具。


一些问题:


1.它为验证方法提供的唯一选择是Windows

和Passport。根据我的阅读,表格是我需要的。谁能告诉我

为什么这个选项不可用?


2.我看到它生成了一个完整的新数据库来存储会员资格/>
信息。这没关系我想但是它没有选择

将这些表存储在我的主数据库中?是否是创建

单独数据库的标准?我需要存储的大部分数据将与用户相关联,因此我假设我想要组合数据库并能够扩展

用户信息ASP.NET创建的。我在这里偏离轨道吗?


感谢您的帮助。


-

乔纳森伍德

SoftCircuits编程
http://www.softcircuits.com

I''m taking my first stab at using ASP.NET memberships and could use some
help.

I''m following along in a book, which recommends I use the Web Application
Administration Tool in VS 2005.

A couple of problems:

1. The only choices it gives me for the authentication method are Windows
and Passport. Based on what I read, forms is what I need. Can anyone tell me
why this option isn''t available?

2. I see it generated a complete, new database to store the membership
information in. That''s okay I guess but doesn''t it have the option of
storing those tables in my main database? Is it the standard to create a
separate database? Most of the data I need to store will be associated with
the users and so I assume I''d want to combine database and be able to extend
the user information that ASP.NET created. Am I off-track here?

Thanks for any help.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

推荐答案

您应该有两种身份验证选择:表格(护照)或

Windows(有效)目录)。看来你得到了这两个选择。


管理会员资格所需的数据库非常复杂

并不仅仅是一张桌子用户及其访问级别。你

不想将这些数据与你自己的数据合并。话虽如此,

会员数据库的默认存储机制是SQL Server

Express Edition(包含在VS 2005中)。你可以改变这一点,以便在现有的SQL Server实例中设置数据库,或者甚至是你系统上的其他提供者。然而,这并不像改变设置那样简单。它涉及更改VS 2005的

web.config和possilby machine.config文件中的值,以及在您希望使用的提供程序中创建成员资格数据库本身的




但总而言之,使用会员数据库和你自己的

这个数据库的extesions不是一个好主意。


-Scott


" Jonathan Wood" < jw *** @ softcircuits.com写信息

新闻:ea ************** @ TK2MSFTNGP02.phx.gbl ...
You should have two choices for authentication: Forms(passport) or
Windows(active directory). It seems that you are getting these two choices.

The database that is needed to manage the memberships is quite sophisticated
and is much more than just a table of users and their access levels. You
would not want to merge this data with data of your own. Having said that,
the default storage mechanism for the membership database is SQL Server
Express Edition (which is included with VS 2005). You can change this so
that the database is set up within an existing instance of SQL Server or
even other provider that you have on your system. This, however is not as
simple as just changing a setting. It involves changing values in your
web.config and possilby machine.config files for VS 2005 as well as creating
the membership database itself within the provider you wish to use.

But to sum up, using the membership database in conjunction with your own
extesions of that database is not a good idea.

-Scott


"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:ea**************@TK2MSFTNGP02.phx.gbl...

我第一次尝试使用ASP.NET会员资格,可以使用一些

帮助。


我正在读一本书,建议我在VS 2005中使用Web应用程序

管理工具。


一些问题:


1.它为验证方法提供的唯一选择是Windows

和Passport。根据我的阅读,表格是我需要的。任何人都可以告诉

我为什么这个选项不可用?


2.我看到它生成了一个完整的新数据库来存储会员资格/>
信息。这没关系我想但是它没有选择

将这些表存储在我的主数据库中?是否是创建

单独数据库的标准?我需要存储的大部分数据都将与用户相关联,因此我假设我想要组合数据库并且能够将b $ b扩展为用户信息ASP.NET创建的。我在这里偏离轨道吗?


感谢您的帮助。


-

乔纳森伍德

SoftCircuits编程
http://www.softcircuits.com



亲爱的Jonathan


创建的ASPNETDB数据库可以支持多个

申请。它被设计成一种共同的资源。

其中一个表中的字段是应用程序ID


只有Windows和Passport身份验证模式才有效
$支持b $ b。它确实支持Forms模式,实际上它有特殊的web控件,例如:在VS2005设计器的工具箱中可用的登录控件




如果你想将会员数据库与你的应用程序集成

数据库然后最简单的方法是将自己的表等添加到

ASPNETDB数据库中。后者可以重命名为其他东西,但是你需要相应地修改web.config文件。


我很害怕它是'在这里处理起来太复杂了,我建议你进一步研究它,并给自己一个机会在

试图在实际项目中实现它之前全部吸收它。还有很多其他需要解决的问题,至少是你是否可以通过所谓的用户实例使用

的默认访问模式。

.mdb文件是动态附加的。到SQL服务器,或者你是否将它设置为永久附加数据库(SQL 2005 Express

版本将支持它)。


虽然说这是一个很好的工具,可以控制谁可以做什么和

不同用户可以拥有的各种视图及其

资源。值得坚持不懈。


HTH


10月15日20:37,Jonathan Wood < jw ... @ softcircuits.comwrote:
Dear Jonathan

The ASPNETDB database that is created can support multiple
applications. It has been designed to act as a common resource. One of
the fields in the tables is "Application ID"

It is not true that only Windows and Passport modes of authentication
are supported. It does indeed support Forms mode, in fact there are
special web controls for it e.g. the Login control which is available
in the toolbox of the VS2005 designer.

If you want to integrate the membership database with your application
database then the easiest way is to add your own tables etc to the
ASPNETDB database. The latter can be renamed to something else but you
will need to ammend the web.config file accordingly.

I''m afraid it''s all too complicated to deal with here, I suggest you
study it further and give yourself a chance to absorb it all before
trying to implement it in an actual project. There are a lot of other
issues that need to be addressed, not the least is whether you can use
the default mode of access via so called "User instances" where
the .mdb file is attached "on the fly" to the SQL server, or whether
you set it up as a permanently attached database (SQL 2005 Express
edition will support it).

Having said that it''s a great tool for controlling who can do what and
the various views that different users can have of the site and its
resources. It''s well worth persevering with.

HTH

On 15 Oct, 20:37, "Jonathan Wood" <jw...@softcircuits.comwrote:

我第一次尝试使用ASP.NET会员资格并可以使用一些

帮助。


我正在读一本书,建议我在VS 2005中使用Web应用程序

管理工具。 />

一些问题:


1.它为我提供的身份验证方法的唯一选择是Windows

和护照。根据我的阅读,表格是我需要的。谁能告诉我

为什么这个选项不可用?


2.我看到它生成了一个完整的新数据库来存储会员资格/>
信息。这没关系我想但是它没有选择

将这些表存储在我的主数据库中?是否是创建

单独数据库的标准?我需要存储的大部分数据将与用户相关联,因此我假设我想要组合数据库并能够扩展

用户信息ASP.NET创建的。我在这里偏离轨道吗?


感谢您的帮助。


-

乔纳森伍德

SoftCircuits Programminghttp://www.softcircuits.com
I''m taking my first stab at using ASP.NET memberships and could use some
help.

I''m following along in a book, which recommends I use the Web Application
Administration Tool in VS 2005.

A couple of problems:

1. The only choices it gives me for the authentication method are Windows
and Passport. Based on what I read, forms is what I need. Can anyone tell me
why this option isn''t available?

2. I see it generated a complete, new database to store the membership
information in. That''s okay I guess but doesn''t it have the option of
storing those tables in my main database? Is it the standard to create a
separate database? Most of the data I need to store will be associated with
the users and so I assume I''d want to combine database and be able to extend
the user information that ASP.NET created. Am I off-track here?

Thanks for any help.

--
Jonathan Wood
SoftCircuits Programminghttp://www.softcircuits.com



Scott,
Scott,

您应该有两种身份验证选择:表单(通行证)或

Windows(活动目录)。看来你正在获得这两个

的选择。
You should have two choices for authentication: Forms(passport) or
Windows(active directory). It seems that you are getting these two
choices.



Ack!好吧,再次运行它我看到的措辞是用户如何访问

站点,选择来自Web或本地网络。从Web上选择

''确实似乎实现了表单身份验证模式。我猜想我以前做的不太好。

Ack! Well, running it again I see the wording is how will users access the
site and the choices are from the Web or from a local network. Selecting
''from the Web'' does indeed seem to implement forms authentication mode. I
guess I didn''t quite get what it was doing before.


管理会员资格所需的数据库是相当的

复杂而且不仅仅是一个用户表和他们的访问权限

级别。您不希望将此数据与您自己的数据合并。
The database that is needed to manage the memberships is quite
sophisticated and is much more than just a table of users and their access
levels. You would not want to merge this data with data of your own.



但正如我之前提到的,我真正需要存储的唯一数据是一些

关于用户的其他信息。您是否建议我创建一个新的

数据库,以便我有两个不同的数据库来存储我的用户的数据?


注意:我的网站将被托管共享主机服务。


谢谢。


Jonathan

But as I mentioned before, the only data I really need to store is some
additional information about the users. Are you recommending I create a new
database so that I have two different databases that store my users'' data?

Note: My site will be hosted on a shared hosting service.

Thanks.

Jonathan


这篇关于帮助ASP.NET成员资格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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