Microsoft Knowledge Base Email Alertz

How to create a logon screen for a Web site in FrontPage 2003

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 922686 - Last Review: July 27, 2006 - Revision: 1.0

How to create a logon screen for a Web site in FrontPage 2003

INTRODUCTION

This article describes how to create a logon screen for a Web site in Microsoft Office FrontPage 2003. A logon screen lets users type a username and a password to log on to the Web site.

MORE INFORMATION

To create a logon screen in FrontPage 2003, follow these steps:
  1. Start FrontPage 2003.
  2. On the File menu, click New, and then click One page Web site under New Web site.
  3. On the General tab, click the Database Interface Wizard icon, type the URL of the Web site, and then click OK.
  4. Click ASP, click Use a sample database connection (Northwind), and then click Next four times.
  5. Click to select the Database Editor check box, and then click Next.
  6. Type the user name and the password, and then click Finish.
  7. Rename the Index.htm file to Index.asp.
  8. On the File menu, click Open, type Sample_interface\Categories\editor\Edit.asp, and then click Open.
  9. Switch to code view, copy the following code, and then paste the code at the top of the Index.asp page.
    <!--#include File='login.asa'-->
    <%
        If Session(SiteID) <> true Then
            Response.Redirect("Login.asp?requester=edit.asp")
        End If
    %>
    
  10. Open the Edit.asp file, switch to the code view, locate line 4, and then change the code as follows.

    Original code
    Response.Redirect("Login.asp?requester=edit.asp")
    Replacement code
    Response.Redirect("Login.asp?requester=index.asp")
  11. Switch to design view, and then remove default links for the database.
  12. Expand Sample_interface, expand Categories, expand editor, and then drag the Login.asa, Login.asp, and Login_Validate.asp files to the root of the Web site.

    Note The three files should be in the same folder as the Index.asp file.
  13. Open the Login_validate.asp file, and then switch to code view.
  14. Replace database_editor.asp in line 20 with Index.asp.
  15. Delete the Global.asa file or the Sample_Interface, fpdb, and _fpclass folders if you do not need them.
  16. You can change the user name and the password from the Login.asa file.

APPLIES TO
  • Microsoft Office FrontPage 2003
Keywords: 
kbcode kbhowto KB922686
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Bruce - pughbruce NOSPAM-AT-NOSPAM yahoo.com Report As Irrelevant  
Written: 3/18/2009 12:27 PM
I followed these steps twice and there is no edit.asp file created so I am unable to copmlete steps 8 and 10 above.

al-muhandes Report As Irrelevant  
Written: 4/18/2009 6:13 AM
Thanks a lot for posting usefull artical such as . I have followed hole steps above, but when I am inserting my user name and password in Login.asp, it didn't let me to access and apearse this " Method Not Allowed The requested method POST is not allowed for the URL /Login_Validate.asp " I don't know why ?