R
Rich
Hello,
I have a webform with 10 textbox (input) controls that I
would like to loop through to add data to a datasource.
In vb.net I say Dim arrTxt As Textbox() = New Textbox()
{txt1, txt2,...} --- then loop through the array to put
data from textboxes into a datarow
I am trying to do this in Asp.Net but does not seem to be
working out. First question is if this is possible to
do? Question2 is if yes, could someone suggest the corect
way to do this? Maybe an array of objects? Or is there a
better way? Or am I limited to
Dim DR As Datarow
DR = DS1.Tables("tbl1").NewRow
DR(0) = txt0.Text
DR(1) = txt1.Text
....
Thanks,
Rich
I have a webform with 10 textbox (input) controls that I
would like to loop through to add data to a datasource.
In vb.net I say Dim arrTxt As Textbox() = New Textbox()
{txt1, txt2,...} --- then loop through the array to put
data from textboxes into a datarow
I am trying to do this in Asp.Net but does not seem to be
working out. First question is if this is possible to
do? Question2 is if yes, could someone suggest the corect
way to do this? Maybe an array of objects? Or is there a
better way? Or am I limited to
Dim DR As Datarow
DR = DS1.Tables("tbl1").NewRow
DR(0) = txt0.Text
DR(1) = txt1.Text
....
Thanks,
Rich