Showing posts with label sqldatareader. Show all posts
Showing posts with label sqldatareader. Show all posts

ExecuteReader in Asp.Net with Example

ExecuteReader is forward only retrieval of records and it is used to read the table values from first to last. It sends the CommandText to the Connection and builds a SqlDataReader. Example : Consider you have a " Employees " table in your database. Now , you want to fetch all the record from your Employee table and show them in a GridView. Add this code to youe aspx Page(Here i am using a GridView control to show Employee...
Read more...