• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 37. FrontPage and Databases > Front and Center: Password Protecting Pag...

Front and Center: Password Protecting Pages of Your Choice

One of the most common questions from FrontPage users is “how can I password protect one or more pages in my Web site?” It just so happens that the Database Interface Wizard adds the ASP code necessary to handle all this for you as long as you don't mind having a single username and password for all of your users. Only ASP pages can be protected using this method because the protection relies on the ASP code generated by the Database Interface Wizard.

Open the edit.asp page that the Database Interface Wizard generated and switch to Code view. Select the code at the top of the page all the way down to, but not including, the <html> tag. Create a new page and save it in the same folder as the edit.asp. Save the page as protected.asp. Switch to Code view and paste the code that you copied from edit.asp into the page at the top of the page before the <html> tag. Edit the line of code that performs the Response.Redirect and change edit.asp to protected.asp. The code before the <html> tag should now be as follows:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint