Hi Armando,
Try this in sample.aspx:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim strFname As String
Dim strFlavor As String
strFlavor = Request.Form.Item("Flavor")
strFname = Request.Form.Item("FName")
Label1.Text = strFlavor & ":" & strFname
End If
End Sub
Does this help?
Ken
Microsoft MVP [ASP.NET]
"Armando Ruiz" <Ar*********@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
If I have the following:
<HTML>
<FORM ACTION="http://mySite/sample.aspx" METHOD="POST">
Enter your name: <INPUT NAME="FName"><BR>
Favorite Ice Cream Flavor:
<SELECT NAME="Flavor">
<OPTION VALUE="Chocolate">Chocolate
<OPTION VALUE="Strawberry">Strawberry
<OPTION VALUE="Vanilla" SELECTED>Vanilla
</SELECT>
<P><INPUT TYPE=SUBMIT>
</FORM>
</HTML>
How do I retrieve the form values sent to sample.aspx in code??
Any help is appreciated...
--
AR