Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

About ado.net components/objects. Usage of data adapters and
tell the steps to retrieve data ?

Answer Posted / kalirajan

ADO.NET Obj:

SqlConnection
SQlcommand
SqlDataReader
SqlDataAdapter
Dataset


Retrieving Data:

SqlConnection con = new SqlConnection("");
con.Open();
SqlCommand cmd = new SqlCommand("select * from Tbl", con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
da.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you add or remove rows from the datatable object of dataset?

964


Describe briefly an ADO.NET Dataset ?

1003


What are the advantage of ado.net?

932


Which method in OLEDBAdapter is used to populate dataset with records?

959


What are the connected and disconnected modes in ado.net?

855


What is ado control?

906


How we can provide data to ado.net?

977


What is ado.net explain with diagram?

917


What is the difference between oledb sql server and oledbdotnet provider?

953


How to copy the contents from one table to another table and how to delete the source table in ado.net?

957


What is a datareader object?

1045


What is difference between ado and other data object?

861


What are the difference between readonly vs. Const?

940


What is sqldatareader in ado.net?

872


What is ado rdo dao in visual basic?

1100