Microsoft KB Archive/922686

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

Article ID: 922686

Article Last Modified on 7/27/2006

-

APPLIES TO


 * Microsoft Office 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:  Start FrontPage 2003. On the File menu, click New, and then click One page Web site under New Web site. On the General tab, click the Database Interface Wizard icon, type the URL of the Web site, and then click OK. Click ASP, click Use a sample database connection (Northwind), and then click Next four times. Click to select the Database Editor check box, and then click Next. Type the user name and the password, and then click Finish. Rename the Index.htm file to Index.asp .</li> On the File menu, click Open, type Sample_interface\Categories\editor\Edit.asp, and then click Open.</li>  Switch to code view, copy the following code, and then paste the code at the top of the Index.asp page. <%   If Session(SiteID) <> true Then Response.Redirect(&quot;Login.asp?requester=edit.asp&quot;) End If %> </li>  Open the Edit.asp file, switch to the code view, locate line 4, and then change the code as follows.

Original code Response.Redirect(&quot;Login.asp?requester=edit.asp&quot;) Replacement code Response.Redirect(&quot;Login.asp?requester=index.asp&quot;) </li> Switch to design view, and then remove default links for the database.</li> 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.</li> Open the Login_validate.asp file, and then switch to code view.</li> Replace database_editor.asp in line 20 with Index.asp .</li> Delete the Global.asa file or the Sample_Interface, fpdb, and _fpclass folders if you do not need them.</li> You can change the user name and the password from the Login.asa file.</li></ol>

Keywords: kbcode kbhowto KB922686

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.