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 you mean by filtering of data?
Which is faster ado.net or linq?
What are all the different methods under sqlcommand?
What are the different ado.net namespaces?
What is execute reader in ado.net?
How do I delete a row from a DataTable?
What is untyped dataset?
What is ado.net architecture?
What is sqldatareader?
What is ole2 format?
Explain the difference between data reader and data set?
Which is faster sqldataadapter and sqldatareader?
What are the different layers of ado.net?
What are the ado.net components?
What is sql connection in ado.net?