Hi Ross,
You must have missed the link at the bottom of one of those pages that leads
to a sample database implementation:
http://msdn2.microsoft.com/en-us/library/tksy7hd7.aspx and
http://msdn2.microsoft.com/en-us/library/317sza4k.aspx
Now, it doesn't have to be a SQL Server, but the article shows you how to
create a database (the schema), and how to write a custom database provider
that connects with it.
The general principle is fairly simple, and based upon using an interface,
or in this case, a derived class which you write, and a static class that
already exists in the Framework. For example, the static Roles class is the
"connector" to the Role Provider class. It connects via the web.config entry
that identifies the specific RoleProvider-derived class being used.
The static class has a number of static methods that perform the various
functions of creating and managing roles. It will call the instance methods
in the RoleProvider-derived class that you implement. All these methods need
to do is to perform the work of connecting to the type of data source being
used and do the work. The .Net Framework classes that work with RoleProvider
use this static class, and your code can too.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"Ross M. Greenberg" <gr******@bellsouth.netNOPAMwrote in message
news:u0*************@TK2MSFTNGP06.phx.gbl...
"Kevin Spencer" <un**********@nothinks.comwrote in message
news:eR**************@TK2MSFTNGP05.phx.gbl...
>Hi Ross,
You're correct in expecting ASP.Net to provide what you need. What you
need from ASP.Net is Membership and Role Providers. These are a set of
interfaces and classes that allow you to implement a wide variety of
security models for your web app with a fairly simple provider model. You
can read all about them at the following locations:
http://msdn2.microsoft.com/en-US/library/aa479032.aspx
http://msdn2.microsoft.com/en-us/library/8fw7xh74.aspx
http://msdn2.microsoft.com/en-us/library/f1kyba5e.aspx
A very interesting links! I also found the http://ASP.net site to be
interesting. However, nobody tells me in these links how to create my
database, remotely, what my physical connection strings should look like.
For example: if my server is called "FTP.XYZ.com" and my user ID is "Fred"
and my password is "Fred2", in my database is to be called "mydatabase"
and has a table called "members" with two columns, one of which is called
"username" and the other is called "password", then what should my config
script/file look like. Although I understand this is ISP dependent, how
do I create a database with that singular table and it, and is there any
decent administrative script available anywhere?
Thanks!
Ross