473,396 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

just getting started...

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
Jul 9 '07 #1
4 1317
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

"Ross M. Greenberg" <gr******@bellsouth.netNOPAMwrote in message
news:eO**************@TK2MSFTNGP03.phx.gbl...
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


Jul 9 '07 #2
"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
Jul 9 '07 #3
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


Jul 9 '07 #4
"Kevin Spencer" <un**********@nothinks.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
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
Jul 10 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
0
by: tamdino | last post by:
Please accept my apologies if I am posting this in the wrong place. I am trying to get started using MySQL-Front and I am totally lost. Does anyone know where there is a tutorial for getting...
84
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
6
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
0
by: abillmeier | last post by:
I am just getting started messing with ASP 2.0, and am working on creating a quick data entry web hooked to a SQL database. I am using stored procedures to get and push data. I am having a...
3
by: Sheldon Rabin | last post by:
Thanks in advance to all of you, Your recommendations: What kind of instruction and software are needed to learn and do useful programming using C+, C++ ? I would like to access and use the...
11
by: sterling.mckay | last post by:
Just started to teach myself C C++ programming... I have been very interested with computers for a while now and have a nac or so I thought for how they work ... hardware I am ok with ... I can...
1
by: bravo | last post by:
hi i am using tomcat-5.0.19 which was running fine but due to some reasons i have to format my system after that the tomcat is not getting started i have checked the environment variables all...
1
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= | last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one of the tested Dell or HP systems from the release notes and could use some pointers as to my assumnptions and answers to...
4
by: evenlater | last post by:
Anybody know how to prevent the annoying Access 2007 "Getting Started with Access" page from showing up when the database is closed using DoCmd.Quit? My database is used in a terminal server...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.