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

Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

624


Why mvc is better than asp.net? : Asp.Net MVC

558


State differences between MVC and WebAPI

700


What is content place holder?

612


If iam developing an application that must accomodate multiple security levels though secure login and my asp.net web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?

623






Explain about solution explorer window?

704


Can you change a master page dynamically at runtime? How?

601


What is the state management in asp.net?

642


Differentiate between globalization and localization.

633


What is the part of url?

613


Do cookies store passwords?

594


How to prepare culture-specific formatting in .net.

621


What is the difference between session and application?

587


What are the new features implemented in ASP.NET?

693


What is the compiled object?

1739