why we use data bind in asp.net



why we use data bind in asp.net..

Answer / prasanth

Data Binding is binding controls to data from databases.
With data binding we can bind a control to a particular
column in a table from the database or we can bind the whole
table to the data grid. Data binding provides simple,
convenient, and powerful way to create a read/write link
between the controls on a form and the data in their application
. Working with Data Binding in ASP.NET is slightly different
to working with it in VB .NET. Generally, Datasets don't
maintain a current record that is displayed in bound
controls. In VB .NET, the BindingContext object handles that
and it lets us set the record bound control display. In
ASP.NET, there is no BindingContext object to handle that.
In ASP.NET, we use a DataView
to let the user select which record should be displayed in
bound controls. We bind the controls using data view and use
the RowFilter property of the data view to select the record
we want the bound control to display. Simply said, in VB
.NET we use the Dataset to bind records to the bound control
and in ASP.NET we use a DataView.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP Interview Questions

Describe how a browser-based Form POST becomes a Server-Side event like Button1_OnClick

1 Answers   ADC, Microsoft,


What is the difference between cshtml and aspx?

0 Answers  


In how many ways you can track the Session?

1 Answers  


What is the order of execution for an ASP application?

2 Answers  


Explain how to refresh an asp page on a single click of a button?

0 Answers  






can any one tell me about dot net framework not basic detail

0 Answers  


What is the difference between client-side script and server-side script?

4 Answers  


Enter the roll number of a student and get his marks from a database file called MARKS. Use an ASP code for the same

0 Answers  


What is asp software?

0 Answers  


What are Scripting Objects?

1 Answers  


Explain how to handle error in asp?

0 Answers  


Using VBScript, which of the following Scripting Object(s) is NOT available from scrrun.dll? A. TextStream B. Dictionary Object C. Err Object D. FileSystemObject E. All are available from scrrun.dll.

1 Answers  


Categories