Please Note: This workaround will not function if your website was created with Visual Site Designer.

To make sure no one goes directly to the protected page instead of through the login box created using Password Wizard, use the following steps.

This requires use of frames and JavaScript. If you are unfamiliar with frames, I suggest you read over this article, which explains them in an easy-to-understand fashion: HTML Frames.

Step 1. This step should be done on the page where you want the password applet to be. For instance, I would create a page called "index.html" and put the following code in it:

(The Frameset code must be before the <body> tag)

<frameset rows="*,100%" border="0">
<frame name="hidden" src="hidden.html" marginwidth="0" marginheight="0" scrolling="no" frameborder="0">
<frame name="visible" src="password.html" marginwidth="0" marginheight="0" scrolling="auto" frameborder="0">

"password.html" should contain the code generated by Password Wizard. It's what displays in the the Password Wizard login box.

Step 2. The following code should be put in the <head> tag of the page you are protecting.

<script type="text/javascript"> if (parent.frames.length==0) window.location.replace( "URL_to_Password_Page" ) </script>

"URL_to_Password_Page" should point back to "index.html" in this case. It's basically saying, "You didn't get here through the right channel. Go back to the login page."

Important: Within Password Wizard, you will need to make sure the target for the link is set to _self.