sir, i have created a global variable on one button click within for loop this variable has many records i want each record to be inserted on another event can it be possible.
as
string str;
button click()
{
foreach(datarow dr in dt.rows)
{
str=dr["field"].tostring();
}
}
submit button()
{
insert into table()values(str);
}
i have to send each value of str how it can be possible?