DotNet Academy of Rajesh Rolen

Solutions by Rajesh Rolen

Difference between <%# Bind(””) %> and <%# Eval(””) %>

EVal is one way binding, Bind is two way

If you bind a value using Eval, it is like a read only. You can only view the data.

If you bind a value using Bind, and if you do some change on the value it will reflect on the database also

so when ever you just want to show metter on grid that time you should use Eval and if you want that user should be able to change the content and that should be reflect in database then we should use Bind

Conclusion:
Bind is Two way binding so data will go in both way from Database to Application and Application to Database.
Eval is One way binding so data will go in one way only, which is database to Application

0 comments:

Post a Comment

About this blog

My Blog List

Advertise On This Site

Site Info

Advertise on this Site

To advertise on this site please mail on RajeshRolen@gmail.com

Information Source

About

Pages

Dot Net Academy

Advertis in This Area of Site

Powered by Blogger.

Followers

Blog Archive

Search This Blog