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

Explain difference between friend and protected friend?

536


What is page request in asp.net?

536


What is the adavantage of using ASP.NET routing?

656


What symbol would you use to denote, the start of a code block in aspx views?

583


What is active web pages?

517






What is a url string?

558


What is view state management in asp net?

472


What’s the difference between response .redirect and server.transfer?

529


What I need to create and run an asp.net application?

520


Which method do you use to kill explicitly a users session?

633


What is the difference between “Web.config” and “Machine.Config”?

708


What is the difference between ASP Session State and ASP.Net Session State?

591


what is AutoEventWireUp and what is the use of This property explain in details?

1140


Define authentication and authorization.

626


Which method is used to enforce garbage collection in .net?

433