Trying to put form data to an array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abehm
    New Member
    • May 2007
    • 35

    Trying to put form data to an array

    Hi everyone
    I am trying to store data entered into a form into an array, and the following code seems to work fine in vb, only i need to translate it into c#. Can anyone give me some help?

    Dim point(12) As Double
    Dim item As String
    Dim i As Integer = 0
    For Each item In Request.Form
    If Not InStr(1, item, "txt") = 0 Then
    point(i) = Convert.ToDoubl e(Request.Form( item))
    i = i + 1
    End If
    Next
Working...