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

Answer Posted / alb.shah

Creating a Database Connection at Run Time
Create the data connection object.
Create a data adapter object.
Create a data set object.
Invoke methods on the adapter object to fill or update the
data set.
Use data binding or another technique to display the data
from the data set.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to automatically get the latest version of all the asp.net solution items from source safe when opening the solution?

719


What is the difference between custom controls and user controls?

678


what is command line compiler.what are the steps and how it is related to debugging.

1605


What is the difference between a multi-layer and multi-tier applications?

771


What is the full meaning of asp.net?

700


What are the advantages and limitations of query string?

788


Can viewstate be accessed in another page?

714


By default, Web API sends HTTP response with which of the following status code for all uncaught exception?

1263


What is the compiled object?

1822


Is asp.net 64-bit enabled? How?

798


What is cache in asp net?

720


What is boxing and unboxing in asp.net?

824


What are Session states available and its Uses?

1924


What is the good practice to implement validations in aspx page?

832


What is the Difference between MVC And MVP design pattrens

2413