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
What kind of data can be stored in viewstate?
What is difference between web api and web services?
i want the asp.net technical questions and answeres
What is http protocol and how it works?
How to fetch a data from one table to another table in asp.net ?
Explain how can we access static variable?
How many types of Cookies are available in ASP.NET?
What is the use of session?
What is the difference between session.abandon() vs clear()?
What are the asp.net list controls and difference between them?
Which .NET framework supports Web API?
Explain how asp.net different from asp?
Define the types of configuration files.
How can you identify that the page is post back?
Why session management is required?