How to retrieve data row by row from a DataTable?
Thanks In advance
PriyaPP

Answer Posted / guest

foreach(Datarow dr in table.rows)
{
string str = dr[0].ToString();
string str1 = dr["columnName"].ToString();

}

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Elaborate differentiation between Cache and Application?

543


How do I send an email message from my ASP.NET page?

540


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

1429


What is the difference between dispose() and finalize()?

501


Is asp.net and .net are same or different?

530






Explain difference betn dataset and recordset?

534


How do you implement postback with a text box?

565


What is event in asp.net?

540


Using code explain Configuration Management

1411


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

637


What kind of programming language is ASP.NET?

612


What is an assembly? Explain its parts.

637


What is work flow gen? how can it will work with .Net?

2581


Distinguish between Server-side and Client-side code with its functionality?

628


Explain the significance of routing? : asp.net mvc

542