?????????? ??? ?? ??????? FrontPage 2002 ??? ???? ??????? ?? ????? ???? ????

???? ?????? ???? ??????
???? ID: 321439 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
???? Microsoft FrontPage 2000 ??????? ?? ??? ?? ???? ??, ?????321503.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

?? ??? ?? ??? ???? ????? ???? ?? ?? Microsoft FrontPage 2002, ?????? ????? ????? (ASP), ?? ???? Microsoft Access ??????? ?? ????? ?? ?? ?????? ???? ??????? ?????? ?? ????? ?? ??? ???? ?????

?????????? ???

  • ?? ??? ??? ????? ??? FrontPage ?????????? ??????? ??????????? ?? ??? ??? ??????????? ?? ??? ??? ??????? ???? ???? ??? ??? ????? ?? ???? ??? ???? ?????? ???? ???? ???????????? ?? ??? ???? ?? ??????? ??????? ??????? ?????? ???? ?? ??? ??????? ??? ?? ???? ??? ?? FrontPage 2002 ??????? ???? ?????? ?????????? ??? ?? ??????? ?? ?? Microsoft Access ??? ???? ???? ??? ?? ??? ????????
  • ?????????? ??? ?? ??????? ??? ????? ???? ??? ??? ??????? ?? ???????? ???? ???? ???? ??????? ?? ???, Microsoft ??????? ???? ?? ?? ??????? ??????? ???? (SSL) ?? ????? ?? ???? ??? ?? ??? ????? ????? ???????????? ???? ??????? ?? ???, ????? ????? ???? ??? ???? ?? ?????????? ?? ??????? ???? ??????? (ISP)?

??? 1 - ??????? FrontPage 2002 ??? ASP ???????? ?? ????? ???? ?? ??? ?????

???? ???? ?? ?? FrontPage 2002 ??? ASP ???????? ?? ????? ?? ???? ???, ?? ????? Microsoft ???????? ???? ??? ???????? ??? ??????? ???? ????:
318287???? ???? FrontPage 2002 ??? ?????? ????? ????? (ASP) ?? ????? ???? ?? ???

2 ?? ??? - FrontPage 2002 ??? ?? ??? ??? ?????

???:?? ????? ??? ?? ??? ??? ?? ????? ???? ?? ???, ???? ?????? ????????? ???? ?? ??? ?? ??? ?? ??? ?? ????, ?? ?? ??? ????? ?? ???? ??? ???? ?? ??? ??? ???
  1. ????? ???????????? ??,????? ????-????? ????, ?? ???? ???????? ?? ???.
  2. ????? ??? ??? ????? ??????? ???? ????????.
  3. ???????? ?? ???? ??? ????? ????????? ???.
  4. ???? ????? ?? ????? ???????? ?? ????? ?? ??? ?? ????? ????????? ????
    HTTP://???? ?????/Logon/
    ???????? ????????? ASP-????? ??? ????? ?? ??? ???
  5. ????? ????,OK.

3 ??? ??? - Microsoft Access ?? ????? ?? ???? ??????? ?? ?????

  1. Microsoft Access ??????? ?????
  2. ????? ???????????? ??,???.
  3. ???? ?? ???? ??? ????? ????????? ???????.
  4. ????? ?? ???Logon.MDB?? ??? ???? ???????? ?? ???????
  5. ???????????????????, ????? ???????.
  6. ???? ???, ????? ?????????? ??????? ????-????? ????, ?? ???? ???OK.
  7. ?? ????? ?????:
    1. ?? ???????? ?????????:UID. ?? ??????? ??????:????? ????,????? ????-????? ????, ?? ???? ??????????? ?????.
    2. ?? ???????? ?????????:PWD. ?? ??????? ??????:????? ????,???.
  8. ????? ???????????? ??,??????. ?????? ?? ???tblUsers?? ????-????? ????, ?? ???? ???OK.
  9. ????? ????????????? ??,???? ????? ?????.
  10. ?????UID?????, ??????testuser. ?????PWD?????, ?????????????.
  11. ????? ???????????? ??,??? ?????????? ?? ??? ?????
  12. Microsoft ?? ????? ?? ???? ???????
???:??????? ?????? ??, ?? ??? ??????? ??? ??????? ?? ??????, ??????? ??????? ?? ???????? ?? ?? mixture ???? ?? ??? ?????????? ???

4 ??? - Microsoft Access ??????? ?? ???? ????

  1. ????? ???????????? ??,???? ????.
  2. ????? ????,????? ??????.
  3. ?????????? ????????? ??, ???? ???????? ?? ????? ?????
  4. ????? ????Logon.MDB????? ??? ???? ??3 ????? ????-????? ????, ?? ???? ????????.
  5. ????? ????,??????? ????.
  6. URL ?? ??? ????????? ????_private/Logon.MDB?? ????-????? ????, ?? ???? ???OK.
  7. ????? ????,OK????? ???? ?????
  8. ??? ?? ???? ??????? ??????? ????? ?? ??? ??? ???, ?? ????? ????????.

5 ??? - ASP ????? ?????

?? ?? ????? ?? ??? ????? ???? ?? ??? ?? ?????? ????? ????? ?? ????, ????? ?????? ????????? ??? ???? ?? ??? ???unsecure ??????? ???????????? ???????????? ?? ??? ??, ?? ??? ?? ???????? ??? ?????????? ????? ????? ????.

5A ??? - ??? ????? ?????

?? ????? ???? ???? ?? ??? ??????? ????? ?? ??? ??? ??? ???? ?? ?? ?? ???? ????? ????unsecure ?????, ?????????? ??????? ?? ?????? ??? ????
  1. ????? ????FrontPage????? ?????, ????? ??????? ?????.
  2. HTML ????? ??? ????, ?? ?? ??? ?????? HTML ????? ????
  3. ???? ????, ?? ??? ??? ????? ??? ???????:
    <% @language="vbscript" %>
    <html>
    <head><title>Home Page</title></head>
    <body>
    <h3>Home Page</h3>
    <p>You are logged on as: 
    <%
      If Len(Session("UID")) = 0 Then
        Response.Write "<b>You are not logged on.</b>"
      Else
        Response.Write "<b>" & Session("UID") & "</b>"
      End If
    %>
    </p>
    <ul>
    <li><a href="secure.asp">Secure Page</a></li>
    <li><a href="unsecure.asp">Unsecure Page</a></li>
    </ul>
    </body>
    </html>
    					
  4. ????? ?? ??? ??? ??????default.asp??? ??????? ??? ???? ??? ???
  5. ???? ????? ??? ??????? ????????? ???????????? ??..

5B ??? ??-??? unsecure ????? ?????

?? ????? ??? ??? ??? ASP ??? ?? ?? ???? ?? ?? ??????? ?? ???? ???
  1. ????? ????FrontPage????? ?????, ????? ??????? ?????.
  2. HTML ????? ??? ????, ?? ?? ??? ?????? HTML ????? ????
  3. ???? ????, ?? ??? ??? ????? ??? ???????:
    <% @language="vbscript" %>
    <html>
    <head><title>Unsecure Page</title></head>
    <body>
    <h3>Unsecure Page</h3>
    <p>You are logged on as: 
    <%
      If Len(Session("UID")) = 0 Then
        Response.Write "<b>You are not logged on.</b>"
      Else
        Response.Write "<b>" & Session("UID") & "</b>"
      End If
    %>
    </p>
    <p><a href="default.asp">Back to default</a></p>
    </body>
    </html>
    					
  4. ????? ?? ??? ??? ??????default.asp??? ??????? ??? ???? ??? ???
  5. ???? ????? ??? ??????? ????????? ???????????? ??..

5 C ??? ??-??? ???????? ??? ?????

?? ??? ??? ????? unsecure ????? ??? ???? ?? ?? ???? ????? 5b, ????? ?? ?? ?? ????? ?? ????? ?? ??? ??? ?? ????? ?????? ??????:
<!--#include virtual="/logon/_private/logon.inc"-->
				
????? ?? ASP ??? ??? ?? ??? ??? ?? ?? ?????? ????? ?? ??? "????????" ?? ??? ??????
  1. ????? ????FrontPage????? ?????, ????? ??????? ?????.
  2. HTML ????? ??? ????, ?? ?? ??? ?????? HTML ????? ????
  3. ???? ????, ?? ??? ??? ????? ??? ???????:
    <% @language="vbscript" %>
    <!--#include virtual="/logon/_private/logon.inc"-->
    <html>
    <head><title>Secure Page</title></head>
    <body>
    <h3>Secure Page</h3>
    <p>You are logged on as: 
    <%
      If Len(Session("UID")) = 0 Then
        Response.Write "<b>You are not logged on.</b>"
      Else
        Response.Write "<b>" & Session("UID") & "</b>"
      End If
    %>
    </p>
    <p><a href="default.asp">Back to default</a></p>
    </body>
    </html>
    					
  4. ????? ?? ??? ??? ??????secure.asp??? ??????? ??? ???? ????? ??? ???
  5. ???? ????? ??? ??????? ????????? ???????????? ??..

5 D ??? - ????? ????? ?????

????? ????? ???? Windows ????? ????? ????? ???? resemble ???? ?? ??? ??????? ???? ??? ??? ?????????? ?? ?? ??????? ?? ?????? ???????????? ????????? ?? ????? ?? ??? ???? ?????????? ??? ?? ??????? ??????
  1. ????? ????FrontPage????? ?????, ????? ??????? ?????.
  2. HTML ????? ??? ????, ?? ?? ??? ?????? HTML ????? ????
  3. ???? ????, ?? ??? ??? ????? ??? ???????:
    <% @language="vbscript" %>
    <!--#include virtual="/logon/_private/logon.inc"-->
    <%
      ' Was this page posted to?
      If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
        ' If so, check the username/password that was entered.
        If ComparePassword(Request("UID"),Request("PWD")) Then
          ' If comparison was good, store the user name...
          Session("UID") = Request("UID")
          ' ...and redirect back to the original page.
          Response.Redirect Session("REFERRER")
        End If
      End If
    %>
    <html>
    <head><title>Logon Page</title>
    <style>
    body  { font-family: arial, helvetica }
    table { background-color: #cccccc; font-size: 9pt; padding: 3px }
    td    { color: #000000; background-color: #cccccc; border-width: 0px }
    th    { color: #ffffff; background-color: #0000cc; border-width: 0px }
    </style>
    </head>
    <body bgcolor="#000000" text="#ffffff">
    <h3 align="center">&#xa0;</h3>
    <div align="center"><center>
    <form action="<%=LOGON_PAGE%>" method="POST">
    <table border="2" cellpadding="2" cellspacing="2">
      <tr>
        <th colspan="4" align="left">Enter User Name and Password</th>
      </tr>
      <tr>
        <td>&#xa0;</td>
        <td colspan="2" align="left">Please type your user name and password.</td>
        <td>&#xa0;</td>
      </tr>
      <tr>
        <td>&#xa0;</td>
        <td align="left">Site</td>
        <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> &#xa0;</td>
        <td>&#xa0;</td>
      </tr>
      <tr>
        <td>&#xa0;</td>
        <td align="left">User Name</td>
        <td align="left"><input name="UID" type="text" size="20"></td>
        <td>&#xa0;</td>
      </tr>
      <tr>
        <td>&#xa0;</td>
        <td align="left">Password</td>
        <td align="left"><input name="PWD" type="password" size="20"></td>
        <td>&#xa0;</td>
      </tr>
      <tr>
        <td>&#xa0;</td>
        <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
        <td>&#xa0;</td>
      </tr>
    </table>
    </form>
    </center></div>
    </body>
    </html>
    					
  4. ????? ?? ??? ??? ??????Logon.asp??? ??????? ??? ???? ????? ??? ???
  5. ???? ????? ??? ??????? ????????? ???????????? ??..

5E ??? - ????? ????? ????? ????? ????

???????? ????? ?? ?????????? ??? ?? ??????? ??????????? ?????? ???? ?? ?? ????? ?????? ????? ???? ???? ?????????? ???????????? ?????.
  1. ????? ????FrontPage????? ?????, ????? ??????? ?????.
  2. HTML ????? ??? ????, ?? ?? ??? ?????? HTML ????? ????
  3. ???? ????, ?? ??? ??? ????? ??? ???????:
    <%
      ' Do not cache this page.
      Response.CacheControl = "no-cache"
    
      ' Define the name of the users table.
      Const USERS_TABLE  = "tblUsers"
      ' Define the path to the logon page.
      Const LOGON_PAGE   = "/logon/logon.asp"
      ' Define the path to the logon database.
      Const MDB_URL      = "/logon/_private/logon.mdb"
    
      ' Check to see whether you have a current user name.
      If Len(Session("UID")) = 0 Then
        ' Are you currently on the logon page?
        If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
          ' If not, set a session variable for the page that made the request...
          Session("REFERRER") = Request.ServerVariables("URL")
          ' ...and redirect to the logon page.
          Response.Redirect LOGON_PAGE
        End If
      End If
    
      ' This function checks for a username/password combination.
      Function ComparePassword(UID,PWD)
        ' Define your variables.
        Dim strSQL, objCN, objRS
        ' Set up your SQL string.
        strSQL = "SELECT * FROM " & USERS_TABLE & _
          " WHERE (UID='" & ParseText(UID) & _
          "' AND PWD='" & ParseText(PWD) & "');"
        ' Create a database connection object.
        Set objCN = Server.CreateObject("ADODB.Connection")
        ' Open the database connection object.
        objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
          Server.MapPath(MDB_URL) & "; uid=admin; pwd="
        ' Run the database query.
        Set objRS = objCN.Execute(strSQL)
        ' Set the status to true/false for the database lookup.
        ComparePassword = Not(objRS.EOF)
        ' Close your database objects.
        Set objRS = Nothing
        Set objCN = Nothing
      End Function
    
      ' This function restricts text to alpha-numeric data only.
      Function ParseText(TXT)
        Dim intPos, strText, intText
        For intPos = 1 TO Len(TXT)
          intText = Asc(Mid(TXT,intPos,1))
          If (intText > 47 And intText < 58) Or _
             (intText > 64 And intText < 91) Or _
             (intText > 96 And intText < 123) Then
              strText = strText & Mid(TXT,intPos,1)
          End if
        Next
        ParseText = strText
      End Function
    %>
  4. ????? ?? ??? ??? ??????Logon.inc?????_private???? ????? ??? ???????
  5. ???? ????? ??? ??????? ????????? ???????????? ??..

??? 6 - ??????? ????? ???

  1. FrontPage ????????? ????????? ????,default.asp. ????? ????FrontPage????? ?????, ????? ??????????? ??? ??????????? ????.
  2. ???? ???????? ?? ????? ??? ????? ??? ?? ???? ?? ?? ?????? ?? ?? ?? ??? ?? ???? ????
  3. Unsecure ????? ?? ??? ???? ?? ????? ????? ????? ??? ?? ???? ?? ?? ?????? ?? ?? ?? ??? ?? ???? ???? ???????? ????? ?? ???? ????? ?????
  4. ???????? ??? ???? ?? ????? ????? ???????? ??? ?? ???? ????? ????? ??? ???? ???
  5. ??????:testuser?????????? ??? ?? ??? ???????????????????, ?? ???? ??? ?? ????????.
  6. ???????? ??? ????? ?? ?? ?? ?? ??? ?? ??? ?? ??? ??? ?????? ??testuser. ???????? ????? ?? ???? ????? ?????
  7. ????? ??? ????? ??? ?? ???? ?? ?? ?? ?? ??? ?? ??? ?? ??? ??? ?????? ??testuser.
  8. Unsecure ????? ?? ??? ???? ?? ????? ????? ????? ??? ?? ???? ?? ?? ?? ?? ??? ?? ??? testuser ?? ??? ??? ?????? ???

????? ????? ???????? ????

?? ????? ?????? ????? ????? ???????? ?? ???? ???:
  • ?????????? ??? ?? ??????? ?? ?????: ?? ??? FrontPage ??? ???-????? ???? ??????? ?? ????? ?? ??? tblUsers ?????? ?? ??? ?????????? ?????? ?? ???? ????
  • ???? ??? ????? ?? ????????: ???? ??? ??? ???? ???? ??? ??? ?? ????????, ?? ?? ?????? ?????? ????? ASP ????? ??? ????????? ?? ???, ?????? ?? ???,mypage.asp, ?? ???? ??? ????? ?? ????????? ???? ?? ??? ????? ?? ???? ??? ??????:
    <% @language="vbscript" %>
    <!--#include virtual="/logon/_private/logon.inc"-->
    						
    ????? ?????? ????????? ???? ?? ?? ?? ???? ???????????? ???? ?? ??? Microsoft Visual Basic ???????????? ??????? (VBScript) ????? ?? ??? ???, ?? ????? ?????? ?? ?????????? ??? ?? ??????? ??????????? ????? ??????? ????? ????? ?????? ???? ?????

??????

?????? ????? ????? (ASP) ??????? ?? ??????? ?? ??? integrating ???? ?? ???? ??? ???? ??????? ?? ??? ?????? ?? Microsoft ???????? ??? ????? ?? ??? ????? ???? ???????? ?? ????? ????:
299987ASP ??????? ?? ??????????? ???? ?? ??? ??????? ?? ASP ???? ?? ????? ???? ????
300382IIS ??? ?? ASP ??? ?? ??? ??????? ??????? ?? ????? ?? ??? ???? ????

???

???? ID: 321439 - ????? ???????: 04 ?????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft FrontPage 2002 Standard Edition
??????: 
kbdatabase kbasp kbprogramming kbhowtomaster kbmt KB321439 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:321439

??????????? ???

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com