<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 the HTTP headers collection in ASP.NET</title> </head> <body> <% Select Case Request.HttpMethod Case "POST" Response.Write("POST requests not allowed!<br>") Response.End Case "HEAD" Response.Write("HEAD requests not allowed!<br>") Response.End Case "GET" 'Process request Response.Write("GET requests are allowed!<br>") Case Else Response.Write("Unknown request: not allowed!<br>") Response.End End Select %> </body> </html>