ADO.Net - how to get data from database and bind to the
controls -- write this small code

Answer Posted / kaarthikeyan

establish a connection and declare sqldataadapter,dataset
sda=new sqldataadapter("select the appropriate
table",connectionobj);
ds=new dataset();
sda.fill(ds);
gridview1.datasource=ds;
gridview1.databind();

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of session in asp.net?

528


Are cookies client side or server side?

499


What is difference between rest and soap?

581


Explain the server control events of asp.net ?

543


Describe the difference between inline and code behind - which is best in a?

576






What are the advantages and limitations of query string?

574


how can we create wcf in asp.net and how can we cll that in to asp.net application?plsss tel me each step clearly

1548


Explain what are delegates?

582


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

1599


Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)

1620


How do you create a master page?

559


Explain the difference between array and linkedlist?

525


Which is the parent class of the web server control?

577


How to retrieve user name in case of Window Authentication?

279


What is form submit?

521