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.

412<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>that a web site can have multiple web.config files with different authorization settings.(See the section “Using Multiple Web.config Files” at the beginning of this chapter.) Ifyou place a second web.config file at a lower level in the hierarchy, the control can beaccessed by a reference to a folder that allows anonymous logins. Figure 16-21 shows thisarrangement in the Solution Explorer.Basically, what you will be doing is starting off with the Default.aspx and login.aspxpages and adding the following code to the web.config file automatically generatedwith a new web site. (Find the node and place the authentication andauthorization nodes after it.)…more code…more codeAllow anonymous usersDeny anonymous usersFigure 16-21 Register page in accessible position

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

Saved successfully!

Ooh no, something went wrong!