[thelist] ASP.NET: For Each Item In...
Casey Crookston
caseyc at IntelliSoftmn.com
Tue Jul 18 12:06:01 CDT 2006
I've been using Google to try and figure out how to parse a form . . .
This code:
Sub btn_click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim item As ListItem
For Each item In Request.Form
lbl_submit.Text &= item.Text & "<br>"
Next
End Sub
Returns this error:
Exception Details: System.InvalidCastException: Specified cast is not
valid.
Source Error:
Line 53: For Each item In Request.Form
More information about the thelist
mailing list