I have seen bind and eval used interchangeably especially in ASP.NET GridViews. What is the difference?
Eval is one-way, read only databinding.
Bind is two-way, read/write databinding.
See here and here.
Bind() is used for two-way databinding. So when used with the proper type of datasource, it will pull the altered values out of the GridView or other control, and save them back to the database.
Eval() is a one-way, "read only" way to bind the values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With