Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
Yet i have not realized what is the diffrence between this two statement in HTML:

HTML
text='<%#Eval("some thing")>'


HTML
text='<%#Bind("some thing")>'
Posted
Updated 9-Oct-12 21:00pm
v2

The main difference between Eval and Bind is
eval is read only, we can't change on database thing eval.
While using bind we can appply some change.

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

Have a look on similar thread here[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 10-Oct-12 2:29am    
OK, my 5, but perhaps this is too clever to me ;-)
I think my answer is simpler, but it is formally more correct. :-)
--SA
The question about the difference is not quite correct; as the "difference" usually does not have exact formal sense. I'll better tell you what do they have in common: they have nothing to do with HTML. HTML simply does not have such things.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900