??????? ???? ?? ??? ??????? ???? ??? ?? ?? ?? ????? ?? ????? ?? ???? GET ?? ?????? ????? ????? ??? ??????? ????

???? ?????? ???? ??????
???? ID: 300104 - ?? ???????? ?? ?????? ??? ?? ?? ???? ???? ???? ??.
??? ?? ??????? ???? | ??? ?? ??????? ????

?? ????? ??

??????

??? ?? ??? ?? ?????? ????? ????? (ASP) ??? ????? ??? ???????? ??????? ??? ?? performed ???????? ?? ?? ???? ?? ?? ??? ?? ???? ???? ????????? ???? ?? ???? ?? ???? ??? ??? ???? ?? ??? ???? demonstrate ???? ?? ??? ??? ?? ??? ?????? ???? ?? ??????? ????? ???: ?? POST ???? ?? ????? ???? ??, ?? ???? GET ?????? ????? ???? ??? ??????? ????? ?? ???? ?? ?? ?? approaches ?? ???? ??? ?????? ?? deeper ???? ???, ?? ???? ???? illustrates ???? ?? ?? ???? ???? ?? ??? ???? ?????

???:: ?? ????? ??? ???????? ??????? ??? ???? ????? ????? ???? ?????. asp ?????, ??????? ???? ?? ??????? ??? ?????? ??? ???????? ?? ??? ?????-???? ??? ??? ????????? ?????. htm ??. asp ????? ?? ???? ???

POST ???? ?? ????? ????

?? ?? POST ???? ?? ????? ?? ??? ????? ?? HTML ???????? ?? ??? ???? ??????? ??? ????? ?????? ??????? ??? ????????? ???? ?? ???? ??? ???? ?? ???, ????? ????? ?? ???? ????::
  1. ?? ??. htm ??? ????? ?? ??? Gatherdata_post.htm ??? ??? ?? ???? ?? ??? ????? InterDev ??????? 6.0 ???, ????????? ??????????? ??? ????????? ??? ?? ????-????? ????, ????? ????add????? ????,HTML ???????????:Gatherdata_post.htm?????, ?? ???? ??? ?? ??? ????????.
  2. ??? ????? ??? ?????????? ??? ?? ???????:???:: ?? ???????? ??? InterDev ?????? ?? ?? ?? ???????? ????? ????? ???? ?? ???? ?? ??? ??? ??? ??????? ?? ???? ???? ???? ?????? ??????, ?? ???????? ??? ?? ??????
    <html>
    <head>
    </head>
    <body>
    <FORM action="RetrieveData_Post.asp" id=form1 method=post name=form1>
    	First Name:
    	<br>
    	<INPUT id="txtFirstName" name="txtFirstName" >
    	<br>
    	Last Name:
    	<br>
    	<INPUT id="txtLastName" name="txtLastName" >
    	<br>
    	<INPUT type="submit" value="Submit"> 
    </FORM>
    </body>
    </html>
    					
  3. ????? ??????? ??? ???? ?? ??? ????? ????Gatherdata_post.htm ??????????? ???????????? ????? InterDev IDE ??? ???
  4. ???? ???? ????? Retrievedata_post.asp ??? ?????? ????? ??? ?????????? ??? ?? ???????, ?? ????? ??????:
    <%@ Language=VBScript %>
    <html>
    <head>
    </head>
    <body>
    <%
    Response.Write("First Name: " & Request.Form("txtFirstName") & "<br>")
    Response.Write("Last Name: " & Request.Form("txtLastName") & "<br>")
    %>
    </body>
    </html>
    
    					
  5. ????? ?? ????-????? ???? ?? ?? ??? ?? Gatherdata_post.htm ?? ???????????? ??? ?????. ????? ?? ????? ??? ?? ??? ??? ??? ???? ????, ?? ???? ??? ????? ????????? ????. Getdata_post.htm ??? ???? ?????? ???? ???? ???? ??? HTTP POST ?? ?????? ?? Retrievedata_post.asp ????? ?? ???? ???? ?? ????? ???? ?? ??? ???Request.Form?????? ???

GET ???? ?? ????? ????

?? ?? GET ???? ?? ????? ?? ??? ????? ?? HTML ???????? ?? ??? ???? ??????? ??? ????? ??? ??? ???? ???? ?? POST approach ?? ???? ???? ?? ?? ????? ?? ?????? ??????? ?? ????????? ???? ?? ???? ???????, ?? ????? ????? ?? ????? ???? ???? ???QueryString. ?? ?? ????? GET POST ?? ????? ?? ????? ???? ?? ??? ?? ?????? ?????? ?? ?? ??? URL ??? ????? ???? ????

GET ?????? ?? ????? ????, ????? ????? ?? ???? ????:
  1. ?? ??. htm ??? ????? ?? ??? Gatherdata_get.htm ??? ??? ?? ???? ?? ??? ????? InterDev ??????? 6.0 ???, ????????? ??????????? ??? ????????? ??? ?? ????-????? ????, ????? ????add????? ????,HTML ???????????:Gatherdata_get.htm?????, ?? ???? ??? ?? ??? ????????.
  2. ??? ????? ??? ?????????? ??? ?? ???????:???:: ?? ???????? ??? InterDev ?????? ?? ?? ?? ???????? ????? ????? ???? ?? ???? ?? ??? ??? ??? ??????? ?? ???? ???? ???? ?????? ??????, ?? ???????? ??? ?? ??????
    <html>
    <head>
    </head>
    <body>
    <FORM action="RetrieveData_Get.asp" id=form1 method=GET name=form1>
    	First Name:
    	<br>
    	<INPUT id="txtFirstName" name="txtFirstName" >
    	<br>
    	Last Name:
    	<br>
    	<INPUT id="txtLastName" name="txtLastName" >
    	<br>
    	<INPUT type="submit" value="Submit" id=submit1 name=submit1> 
    </FORM>
    </body>
    </html>
    					
  3. ????? ??????? ??? ???? ?? ??? ????? ????Gatherdata_get.htm ??????????? ???????????? ????? InterDev IDE ??? ???
  4. ???? ???? ????? Retrievedata_get.asp ??? ?????? ????? ??? ?????????? ??? ?? ???????, ?? ????? ??????:
    <%@ Language=VBScript %>
    <html>
    <head>
    </head>
    <body>
    <%
    Response.Write("First Name: " & Request.QueryString("txtFirstName") & "<br>")
    Response.Write("Last Name: " & Request.QueryString("txtLastName") & "<br>")
    %>
    </body>
    </html>
    					
  5. ????? ?? ????-????? ???? ?? ?? ??? ?? Gatherdata_get.htm ?? ???????????? ??? ?????. ????? ?? ????? ??? ?? ??? ??? ??? ???? ????, ?? ???? ??? ????? ????????? ????. Getdata_get.htm ??? ???? ???? ??? ?? ?? ???? ?? ???? ???? ?? GET ?? ?????? ?? Retrievedata_get.asp ????? ?? ????? ??? ???? ?? ??? ???Request.QueryString?????? ??? ?? ???? ???, ?? ??? ???QueryString?????? ???? ???? ???? ?? ??? ASP ????? ??????? ???? ?? ??? ?????? ?? ?? ?? ????? ???? ??, ?? ??? ?????? ?? ??? ??? GET ?? ????? ???? ?? ??????????? ?? POST ?? ??????????? ???? ??????? ???? ?? ??? ?????? ?? ????? ???? ???? ???

??????

???????? ??????? ?? ??? ?????? ?? Microsoft ???????? ??? ????? ?? ??? ????? ???? ???????? ?? ????? ????:
254742IIS: HTTP ??????? ???? ???? ?????? ?????? ????? ASP ????????
208427?????: URL ?? ?????? ????? ?? Internet Explorer ??? 2,083 ????
254786PRB: ???? ?????? ????????

???

???? ID: 300104 - ????? ???????: 29 ??????? 2010 - ??????: 2.0
???? ???? ???? ??:
  • Microsoft Active Server Pages 4.0
??????: 
kbaspobj kbcodesnippet kbhowto kbhowtomaster kbsample kbscript kbmt KB300104 KbMthi
???? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:300104
????????? KB ??????? ????????
?? ???? ?? ??? ?????? ?? ??? ???? ??? ?? ????? ??? 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