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
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