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

Describe state management in asp.net?

555


What are validator? Name the validation controls in asp.net?

508


What is custom attribute?

571


What is diff. Between abstract class and an interface?

524


What is the difference between session and viewstate in asp.net?

610






What are the disadvantages of using session?

475


How to display Alert in ASP.NET

649


Can you explain composite pattern?

594


What are client activated objects and server activated objects?

521


What is the difference between client-side and server-side validations in webpages?

564


What is httpresponse?

516


How can we inherit a static member?

597


What are the different validators in asp.net?

564


What is the server of asp.net?

514


What is the difference between client-side and server-side validations in ASP.NET?

666