populate row data to textbox.
how to populate table row data to textbox ?
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.
Joginder BangerPosted Feb 17, 2014, 3:19 PM
dataTable dt = new DataTable();
foreach (DataRow item in dt.Rows)
{
Session["main_email"] = item[0].ToString();
Session["mainReg_id"] = item[1].ToString();
}
Suppose In your Data Table have a three Row like that
First Row is contains Id No.
Second Row is Contains Emp Name.
and Third Row is Contain Emp salary. you can retrieve data above mention that how.
for any query faced plz hit to reply.
Happy coding
jsb