<html>
<head>
<title>Submit a named parameter via POST</title>
</head>
<body>
<form id="form1" action="NextPage.aspx" method="POST">
<h3>Name:</h3>
<input type="text" name="name">
<input type="submit">
</form>
</body>
</html>
File: NextPage.aspx
<%@ Page Language="vb" %>
<html>
<head>
<title>Displaying a named request parameter in ASP.NET</title>
</head>
<body>
<%
Response.Write(Request("name") & "<br><br>")
Request.SaveAs("C:\HTTPRequest.txt", True)
Dim length As Integer
length = Request.ContentLength
Response.Write("Length of request was: " & length & " bytes.")
%>
</body>
</html>
|