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 ado.net full form?
What is disconnected data?
Explain how to find the given query is optimised one or not?
What are the ado.net components?
What is the significance of CommandBehavior.CloseConnection ?
What is sql connection in ado.net?
How many major types of connection objects in ADO.NET?
What are the Features and disadvantages of dataset
What are the major challenges in accessing data from a database?
What is the difference between Dataset. clone and Dataset.copy?
how Sequence to connect and retrieve data from database using dataset?
What is microsoft ado?
What is row state?
What is the difference between a datareader and a dataset?
Explain the difference between an ado.net dataset and an ado recordset?