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

What is server infrastructure & server components?

779


Explain program to call the js function when the change is being made in the dropdown list made in asp.net mvc? : asp.net mvc

525


Apart from IDE what are the enhancements in asp.net 2.0?

1622


What is the benefit of WebAPI over WCF?

563


Which two new properties are added in asp.net 4.0 page class?

521






Is oauth for authentication or authorization?

585


Where do we store our connection string in asp.net application?

523


Describe the difference between inline and code behind - which is best in a?

569


Explain the purpose of storyboard.targetproperty.

519


What are the built-in objects in asp.net?

552


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

5677


Define common type system?

579


What is the use of autowireup in asp.net?

556


What are the versions of garbage collection?

1454


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

1899