Membership Website

Hi,
I am developing my website with ASP:NET and I need to set it up so that certain .aspx pages are accessible only after the user has made the necessary payment. Initially, I am using Paypal as the payment tool, and I need the subscription and paymente process to be integrated with paypal.

So, in other words, the sequence would be: user requests page, user is prompted to login or register, if not registered, user needs to make payment and then he can register and access the page.

My question is what is the way to approach this with ASP.NET.

Regards and thanks in advance.
robespierre_2010Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dale BurrellDirectorCommented:
Use the built in asp.net membership provider.

Put your protected pages in a sub-directory, and protect it with a 'role'.

When a successful payment is made add that role to the user.
0
robespierre_2010Author Commented:
that sounds good, but how do I automate the creation of the user after the payment has been made?
0
Dale BurrellDirectorCommented:
You can configure Paypal to call back your site with the transaction status, then you can call the membership provider and ask it to create a new member. You'll need to do some reading as its too complicated to explain here.

Possible starting point http://msdn.microsoft.com/en-us/library/ms998347.aspx
0
robespierre_2010Author Commented:
can you be more specific about paypal configuration?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dale BurrellDirectorCommented:
Dude... you're gonna have to do some research here... its not something that can be explained in a single post. There are developer documents available from paypal which explain the various ways you can interface to paypal and the various notifications you can receive - which are different depending on the way you interface with paypal.

Sorry I can't be of more help... but the topic is too big...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.