just getting started...

  • Thread starter Thread starter Ross M. Greenberg
  • Start date Start date
R

Ross M. Greenberg

I'm just entering the world of .Net programming. I first experimented with
a local IIS. My ISP provides ASP.net-2 services. I'm interested in
starting off with a simple membership-based website that provides access to
one set of pages to members and one other set to nonmembers. Looks like
ASP.net is the way to go!

Although it was easy enough on IIS, I don't know where to start remotely!

Any pointers? Any scripts? Any Web.config's?

Thanks!

Ross
 
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

--
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
 
Kevin Spencer said:
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
 
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
 
Kevin Spencer said:
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.


I'm going to have to build a MYSQL provider since my ISP charges some absurd
amount every month for access to SQL Server!
The Membership stuff is pretty straightforward otherwise!

Thank you!

Ross
 
Back
Top