Sunday, October 31, 2010

Difference between Bind and Eval in asp.net

Bind is a new ASP.NET 2.0 databinding keyword. It's not a method of any specific class.
The Bind method supports read/write functionality with the ability to retrieve the values of data-bound controls and submit any changes made back to the database.

Eval is used for unidirectional (readonly) data binding, while Bind is for bi-directional (editable) databinding.
The Eval method is a static (read-only) method that takes the value of a data field and returns it as a string.

No comments:

Post a Comment