13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

416<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>Figure 16-24 “Complete” message shows if new user is in databaseif you type in the code alone for the Login control, you will not get the <strong>ASP</strong><strong>NET</strong>DB.MDFdatabase and the aspnetdb_log.ldf files generated in the App_Data folder. Both of thoseare required for using the Login and CreateUserWizard controls.Adding RolesAs you saw in the section on using the Web Site Administration Tool, you are able to adddifferent roles and assign each an access rule (see Figure 16-13). You can add roles and rulesusing the Web Site Administration Tool directly from the Login control icon in the editor.From the Design mode, simply open the Login control’s pop-up menu and select AdministerWebsite. That will open the Web Site Administration Tool with direct access to the databaseyou are working with for that web site. You have access to all of the users that have beengenerated with the CreateUserWizard control. This process must take place in the editor andcannot be used when the web site is up and running, even in Visual Studio 2008.WarningAs much as I respect the strength of the encryption and protection afforded by<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>, I would not re<strong>com</strong>mend setting up any kind of financial-transfer web siteusing it. Whenever it <strong>com</strong>es to setting up an e-business site requiring financial transfers,I use (and re<strong>com</strong>mend using) a security service that does financial security and nothingelse. For both the purposes of legal protection against lawsuits and for smooth financialtransactions, rely on a well-respected security firm that deals with credit card and banktransfers, not on beginning skills with <strong>ASP</strong>.<strong>NET</strong>.With an e-business site, I am very <strong>com</strong>fortable using the <strong>ASP</strong>.<strong>NET</strong> encryption forlogging in and registering users, but when it <strong>com</strong>es time to pay a bill, I use a separatepage that logs into a security firm’s financial transfer software. In this way, your clientshave multiple protections and so do you.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!