|
What you need to create a membership website |
|
This is
not a tutorial in the usual sense; rather it is a list of resources you
will need to set up a password-protected membership based, database driven
website using the asp.net controls of Expression Web. To be an actual
tutorial, this presentation would need to be as long as the first
referenced book below. This book
includes way more details than can be presented here -- such things as
setting up roles using the Website Administration Tool and how to assign
users to Roles so that only approved users can access certain folders. This book gets into
actually using the controls to interact with a database, and provides a lot of good explanation for how things work. It gets into
some areas like compilation and using different Providers that don't get discussed in other Expression Web books. I
would buy it, and read it for those reasons. But for the down-and-dirty working with the controls and databases, refs.
(1) and (2) are the ones. The reason for buying and
reading this book is that Cheryl provides the approach to "doing things right" from the get-go. Especially if you are a
beginning web designer, you should read through her book to get off on the right
track, especially with regards to using Cascading Style Sheets and good
practice design for accessibility. Yes, you
probably came here because you use Expression Web, but the fact is that Expression Web by itself is *not* a good tool for
interacting with a database. VWD is the tool you want to start with (all this is explained in ref (1) above). Every page
on your site should be first created using VWD, not Expression. VWD will automatically
create the code-behind pages that contain any VB code you will eventually need for your database interactions, or for the application of any
business logic for your website. VWD is an excellent "sister" program to Expression, and once you have created your
website and your pages with VWD, you can open the site and work on its design with Expression. But when you need
any VB code (you will), go back to VWD. I recommend using the Spicelogic Paypal Control which will
do the heavy lifting regarding payments, and the Spicelogic help team is very responsive. You can add it to the Toolbox
of VWD, and use it just like any of the other asp.net controls and, as with all controls, the coding is all done for you.
No worries about the back and forth between your site and PayPal. You will probably need to do a little VB
code-behind to, for example, put the user who has just paid into a "Paid" Role. Then, if you have set up your site --
following ref (1) -- such that only people in the Role of "Paid" can access the password-protected portion of the site,
you are all set. When you upload your site to
your host, you need to transfer your SQL Express database to the host,
since most of them will not support SQL Epxress. Depending on your host, you can use the tool in VWD that handles generating the script needed for porting
up to the host's SQL2000 or 2005 database (VWD, Database Explorer panel, right-click / Publish to provider) , or for
some hosts, it is a simple as copying your aspnetdb.mdf database to your host. Directions for using former script
generation have kindly been posted online by Gregory Beamer at The host I use is webhost4life.com. The reasons I use them are they are reasonably priced, their help system is excellent (you can on-line chat with a tech support person at any time), and their method of porting your SQL Express database up to their SQL database is dead simple -- just copy your aspnetdb.mdf database to them. That's the basics. Remember, your basic guide to creating your site is the first reference above (the Sam's book by Scott Mitchell). Use that as your roadmap. There are many things not covered in this brief discussion that are covered in Scott's book (for example the use of the Website Administration Tool for setting up Roles etc) When you get stuck on anything related to web design, get help at the Expression Web Forum, and when you need help with your database, business logic, or anything related to code behind and the asp.net controls, get help at the ASP.NET forum. And of course there are the other tutorials on this site, and many others.
|
|
HomePage Doctor Site Navigation |
||||||||
|
||||||||