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
How to work with disconnected data - the dataset and sqldataadapter?
What is connection string?
What are the essential features of ado.net?
What is the functionality of data provider in ado.net?
What is ado.net in vb net?
What is DataRowCollection?
What are the Features of a dataset
What is acid in ado.net?
What are the disadvantages of using datalist?
What is connection in ado.net?
Which namespaces are used for data access?
What are the major challenges in accessing data from a database?
What do you mean by ‘batch updates’?
What is difference between ado and other data object?
What is difference between datatable and dataset?