????? ??????? ????? Server.Transfer

?????? ????????? ?????? ?????????
???? ???????: 219294 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??????? ???? ?????? ?????? (ASP) ??????? ??????? ?? ??????? 5.0 ?? ????? ??????? ?????? (IIS) ????? ??? ???? ASP ???? Server.

??? ????? ???? ???? ???? ???????? ????? Response.Redirect ???? ??? ???? ???? ???? ??? ASP ??????? ????????? ??? ??? ???? ?????. ???????? ??? ???? ?????? ????? ???? ??? ?????? ????? ?? ??? ???????? ?????? ????? ??? ???? ?????.

??????? ????

????? ??? ??????? ????? Server.Transfer ????? ????? ?????? ?????? ?? ??? ????? ?????? ???????. ??? ??? ?????? ?????? ?? ??????? ??? ?????? ?????? ??????? ? ???? ?????? ??????? ??? ?????? ?????? ????? ?? ?????????. ?? ???? ??? ??????? ?????? ???? ????? ???? HTTP ?????? ??? ASP ???? ??? ????? ???. ?? ???? ????? ????? ??????? ?????? ???? HTTP ??? ???? ??????? ?????? ??? ASP ???? ??? ????? ??? ? ??? ??? ?? ????? ?? ????? ?? ???? ASP ??? ????. ???????? ??? ???? ?????? ?????? ???? ???? ??????? ??? ???????? ???????? ????? ??????? ????.

???????? ??? ????? ??? ???? ASP ????? ?? ASP ???? - ?? ?????? ???? ?????? ??? ASP ?? ????? ?????. ?? ????? ??? ??????? ??? ??????? ?????? ???? ASP ????? ?? ???? ASP ??????.

??? ??? ??? ???? ?? ????? ??? ??????? ??????? ???? ??? ????? ??? ????????? ?? ??????? ??????. ????? ????, ??? ??????? ?? ???? ASP ???? ??? ????? ???? ?? ??????? ??????.

??????

???? ????? ?????? ?????? ??? ???? ??????? ????? Server.Transfer. ?? ??? ??????? ????? ?????? ??????? ??? ??????? ???????? ????? HTTP POST ?????? ???????? ????? HTTP GET. ??????? ??? ???????? ??? ?????? ??????? ?????? ?? ????? HTTP ????? ???? ????? ?????? ??? ????? ???????. ???? ??????? ????? ????? ? ?? ???? ??? ????? "???? ???" ?? ??? ??? ??????? ??????? ?? ?????? ?????? ??? ?????? ??????? ???????.
  1. ?? ???? ???????? ???????? ?? ASP ??????? ?? ???? "page1.asp" (???? ?????? ????????):
    <html>
    <body>
    <h3>Step 1 - Form Page</h3>
    <table border="1">
       <tr>
          <th>POST</th>
          <td>
             <form action="page2.asp" method="POST">
             <input type="text" name="Name">
             <input type="submit" value="Submit">
             </form>
          </td>
       <tr>
       </tr>
          <th>GET</th>
          <td>
             <form action="page2.asp" method="GET">
             <input type="text" name="Name">
             <input type="submit" value="Submit">
             </form>
          </td>
       </tr>
    </table>
    </body>
    </html>
    						
  2. ??? ????????? ???????? ??????? ?? "page2.asp" (???? ?????? ????????):
    <% @LANGUAGE="VBSCRIPT" %>
    <html>
    <body>
    <h3>Step 2 - Transfer Page</h3>
    <%
       Select Case UCase(Request.ServerVariables("REQUEST_METHOD"))
          Case "POST"
             Server.Transfer "page3a.asp"
          Case "GET"
             Server.Transfer "page3b.asp"
          Case Else
             Response.Write "An unknown HTTP verb was used."
       End Select
    %>
    </body>
    </html>
    						
  3. ??? ????????? ???????? ??????? ?? "page3a.asp" (???? ?????? ????????):
    <% @LANGUAGE="VBSCRIPT" %>
    <h3>Step 3a - POST Results</h3>
    <p>Hello <% = Request.Form("Name") %></p>
    </body>
    </html>
    						
  4. ??? ????????? ???????? ??????? ?? "page3b.asp" (???? ?????? ????????):
    <% @LANGUAGE="VBSCRIPT" %>
    <h3>Step 3b - GET Results</h3>
    <p>Hello <% = Request.QueryString("Name") %></p>
    </body>
    </html>
    						
??????: ????????? ????? ??? ????? HTML ?????. ????? ??? ??? ?? ??? ????? ??? ???????? ??? ?????? ?????? ????????? ???? ?? ??? ????? ??? ?????? ???????.

??????? ??? ?????? ??? ???? ??????? ??? ???? ??? ?? "??????" ????? ?????? ?? ?????? "page1.asp."

???????

???? ???????: 219294 - ????? ??? ??????: 30/????/1427 - ??????: 2.1
????? ???
  • Microsoft Internet Information Services 5.0
????? ??????: 
kbmt kbcodesnippet kbinfo kbscript KB219294 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????219294
????? ??????? ?? ????? ???? ?? ????? ???????
?? ????? ????? ?????? ???? ???? ???? ??? ??????? ??? ?? ? ?? ??? ??????? Microsoft ??? ????? ??? ??????? ????? ?????? ?????

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

 

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