• Home /
  • Blog /
  • Eval vs Bind for ASP.NET
Bind Vs Eval In Asp Net

Eval vs Bind for ASP.NET

When you start working with ASP.NET sometimes it’s difficult to understand what is the difference between Eval and Bind for data binding controls in ASP.NET.

If you just need to display data on the screen from DataSource, it’s enough to use Eval. It’s something like a read-only method from DataSource.

But if you need to edit data inside of Grid you have to use Bind method because it provides two-way binding. You can read data from DataSource, and you can write data back. Usually you have to use this method if you need to quickly develop a WebPages and display and edit data from one table or simple view.

If you try to modify some rows in Data Grid and want to make changes in the code behind class (OnUdpdating event), data with Eval method will not be available instead of Bind method.


Yaplex - Freelance developer - white logo on black background

Yaplex is a custom software development company co-founded by full-stack .NET Software developer Alex Shapovalov who lives in Mississauga, ON and provides software development services in Mississauga and GTA.

Contact Information

Mississauga, ON, Canada
Phone: +1 647 328 3809
Email: alex@yaplex.com