Development ASP.Net

<%@ Page Language="vb" %>

   
      Submitting and displaying form values in ASP.NET
   
      Sub Page_Load()
         If Request.HttpMethod = "POST" Then
            Dim Counter1 As Integer
            Dim Keys() As String
            Dim FormElements As NameValueCollection
            FormElements=Request.Form
            Keys = FormElements.AllKeys
            For Counter1 = 0 To Keys.GetUpperBound(0)
               Response.Write("Form " & Counter1 & " name: " & Keys(Counter1) & "
")
               Response.Write("Form " & Counter1 & " value: " & FormElements(Counter1) & "
")
            Next Counter1
         End If 
      End Sub
   
   

<%
If Request.HttpMethod = "GET" Then
%>

   First Name: 
   

   
   

   Last Name: 
   

   
   

   

<%
End If
%>