1
Answer

populate row data to textbox.

ranjan sahoo

ranjan sahoo

11y
843
1
how to populate table row data to textbox ?
Answers (1)
0
Joginder Banger

Joginder Banger

NA 10k 490.7k 11y
Hi Ranjan Sahoo G....first of all welcome to C-sharpcorner. your Problem is not clear what's you try first, ok don't worry i give solution your problem. It's is simple like that,

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