In a gridview, we can use <%#Eval%>
or <%#Bind%>
to output values from a database. What is the difference between them?
Eval does one-way binding; Bind is two-way.
If you bind a value using Eval, it is read-only. You can only view the data.
If you bind a value using Bind, changes to values will be reflected in the database as well.
You can refer to this similar post here on stack overflow: What is the difference between <%# Bind("") %> and <%# Eval("") %> in ASP.NET?
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