"Eval"和"Eval"之间的区别是什么? HTML代码中的“绑定"? [英] what is the diffrences between 'Eval' & 'Bind' in Html codes?

查看:61
本文介绍了"Eval"和"Eval"之间的区别是什么? HTML代码中的“绑定"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.
但是我还没有意识到这两个HTML语句之间的区别是什么:

Hi.
Yet i have not realized what is the diffrence between this two statement in HTML:

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





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

推荐答案

Eval Bind 之间的主要区别是
eval只读的,我们无法更改数据库内容eval.
使用bind 时,我们可以进行一些更改.

Eval 是一种方式绑定,Bind是两种方式
如果使用Eval绑定值,则它就像只读的.您只能查看数据.

如果使用Bind绑定值,并且对该值进行了某些更改,则该值也会反映在数据库中.

此处查看类似的线程 [
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[^]


关于差异的问题并不十分正确;因为差异"通常没有确切的形式意义.我会更好地告诉您它们的共同点:它们与HTML无关. HTML根本没有这样的东西.

—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


这篇关于"Eval"和"Eval"之间的区别是什么? HTML代码中的“绑定"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆