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
Elaborate differentiation between Cache and Application?
How do I send an email message from my ASP.NET page?
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?
What is the difference between dispose() and finalize()?
Is asp.net and .net are same or different?
Explain difference betn dataset and recordset?
How do you implement postback with a text box?
What is event in asp.net?
Using code explain Configuration Management
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
What kind of programming language is ASP.NET?
What is an assembly? Explain its parts.
What is work flow gen? how can it will work with .Net?
Distinguish between Server-side and Client-side code with its functionality?
Explain the significance of routing? : asp.net mvc