Populate row data to textbox.
how to populate table row data to textbox ?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Joginder BangerRank #360 · 7K reputationPosted Feb 17, 2014, 10:19 AM EST
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