How to retrieve data row by row from a DataTable?
Thanks In advance
PriyaPP
Answer Posted / digvijay
In C#
foreach(DataRow dr in dt.rows) //dt is Data table
{
string ABC= dr["Coloumn_Name"].Tostring;
}
Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are the different types of sessions in asp.net? Name them?
What is the difference between session and application?
Explain the difference between asp.net mvc and asp.net webforms
What is application Object?
What is the server of asp.net?
What are the major built-in objects in ASP.NET?
What is the meaning of TestApi?
What is the difference between client-side and server-side validations in ASP.NET?
Difference between using directive vs using statement?
In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?
What is the use of execute non query in asp.net?
a web application needs to be created to accept the product name and quantity of a toy from a customer. After the customer has entered the product name the application needs to display the discounted price of the product to the customer (company is offering 35% discount on all products). The application should allow the customer to select the product name from a list box. and also while i'm data binding to a label with custom data binding with some declarations : "The Discounted Price is "+((System.Convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)) - ((System.convert.todouble(lblprodprice.text)*(system.convert.todouble(txtqty.text)*0.35)). Where i need to give this declaration in asp.net 2.0.
How information about the user's locale can be accessed?
Explain server-side scripting and client-side scripting.
Why mvc is better than asp.net? : Asp.Net MVC