Write steps of retrieving data using ado.net ?
Answer Posted / sudheer lakkireddy
Take a gridview control in ur design
add
using system.data.sqlclient;
using.system.data;
// give a connection string to database
sqlconnection con= new sqlconnection("conn");
//in button click event write following
sqldataadapter da=new sqldataadapter("select * from
(tablename)",con);
dataset ds=new dataset();
da.fill(ds,"tablename");
gridview1.datasource=ds;
gridview1.datamember="tablename";
gridview1.databind();
try out this
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
What is openquery?
What is acid in ado.net?
What is the meaning of executenonquery?
What are the ado.net connection pooling parameters?
Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.
What are the parameters that control most of connection pooling behaviours?
What is an ado?
What is executequery?
What is difference between sqldatareader and sqldataadapter?
How will you fill the gridview by using datatable object at runtime?
What are the several execute methods of ado.net?
Explain the namespaces in which .net has the data functionality class.
What is the difference between a datareader and a dataset?
How can we load multiple tables in to dataset?
How can we serialize the dataset object?