Hi All,
In my application i have created textboxes based on user requirement at runtime.
Here,
How can i retrieve that data from that textboxes & how can i save it into database..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JadavPosted Jan 31, 2012, 3:04 AM
are u using foreach for retriving the data from control on the your form or from any container control.
like.
foreach(Control c in this.Controls)
{
if(c.GetType().ToString() == "System.Windows.Form.Controls.TextBox")
{
((System.Windows.Form.Controls.TextBox)c).Text = c.Name;
}
}
in the same way u can retreive the value and insert them into to ur table .
it might help u.,.