WHAT IS DIFFERENCE BETWEEN EVAL() AND BIND() METHOD IN ASP.NET?

Tanuj Kumar

Total Post:30

Points:150
Posted by  Tanuj Kumar
 3022  View(s)
Ratings:
Rate this:
  1. Tanuj Kumar

    Post:30

    Points:150
    What is difference between Eval() and Bind() method in Asp.Net?

    The difference between Eval and Bind is that Eval function is used to bind data to control inside a DataBound control, but it cannot update the values back to the database.

    On the other hand, Bind function can be used to bind data to control inside a DataBound control and also it can update the values back to the database.

    But the above explanation did not give me clear idea and hence I wrote two examples in order to illustrate the functioning Eval and Bind functions in ASP.Net.

    There are basically two difference in between them...

    • Eval() is Unidirectional where as Bind() is Bi-Directional.
    • Eval() can combine more than two filed where as Bind() cannot do this Operation.

      Modified On May-08-2016 11:53:27 PM
  1. AVADHESH PATEL

    Post:257

    Points:1285
    What is difference between Eval() and Bind() method in Asp.Net?

    Eval is used for unidirectional (readonly) data binding, while Bind is for bi-directional (editable) databinding.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!