Could someone help me with the proper syntax to loop through the records in a Formview? Something like
I keep getting an 'index out of range' error or a 'Value not found ...' no matter how I structure it.
DataItemCount shows a positive integer in this example.
Thanks
Code:
For i = 0 To FormView1.DataItemCount - 1
Response.Write(FormView1.DataKey(i).Value.ToString())
Next
I keep getting an 'index out of range' error or a 'Value not found ...' no matter how I structure it.
DataItemCount shows a positive integer in this example.
Thanks