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

Define globalization and localization.

648


Explain the updatepanel?

659


How you will handle session when deploying application in more than a server?

691


What is x xss protection?

646


What is base class of .net?

639






How can I open ashx file in mobile?

719


What is inheritance and an how it be used, example with an example?

664


how to elimainte the similar data from the different tables

1781


What is meant by web application?

628


What are the differences between application object and session object?

593


What is simple data binding?

625


How information about the user's locale can be accessed?

672


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

664


What is the advantage of using Windows authentication in a Web application?

668


Why session is necessary in web application?

614