Nos. 1 and 2 are in fact the same. The shorter way of calling the Eval method was introduced in .NET 2.0.
No. 3 is different. Eval only allows one-way "read" operations, while Bind allows two-way "read" and "write." If you are only selecting records and binding them to a display (say, a Label), they appear to work the same. However, if you want to be able to update records and persist them back to the database (from say, a Textbox) you need to use Bind.
|