Eval和Bind有什么区别? [英] What is the difference between Eval and Bind ?

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

问题描述

我知道两者都用于与数据库绑定数据,但是我有一些专业人员使用Bind,有些人使用Eval有什么区别

I know both used for binding data with database but I have some Professionals use Bind and some use Eval what is the difference

推荐答案

参阅此
http://www.dotnetspark.com/qa/89- what-is-difference-between-bind-and-eval.aspx [ http://www.dotnetfunda.com/面试/exam3723-what-is-the-the-difference-between-eval-and-bind-methods.aspx [ http: //weblogs.asp.net/leftslipper/archive/2007/06/29/how-asp-net-databinding-deals-with-eval-and-bind-statements.aspx [ http://stackoverflow.com/questions/1796685/whats-the-difference-beween-eval-and-bind-in-asp-net [
See this
http://www.dotnetspark.com/qa/89-what-is-difference-between-bind-and-eval.aspx[^]

http://www.dotnetfunda.com/interview/exam3723-what-is-the-difference-between-eval-and-bind-methods.aspx[^]

http://weblogs.asp.net/leftslipper/archive/2007/06/29/how-asp-net-databinding-deals-with-eval-and-bind-statements.aspx[^]

http://stackoverflow.com/questions/1796685/whats-the-difference-between-eval-and-bind-in-asp-net[^]


Eval是一种单向绑定. >
绑定是两种方式的绑定.

如果使用Eval绑定值,则它就像只读的.您只能查看数据.

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

参考:
http://msdn.microsoft.com/en-us/library/ms178366.aspx [ ^ ]
Eval is a one way binding.

Bind is two way binding.

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

Refer:http://msdn.microsoft.com/en-us/library/ms178366.aspx[^]


参考这些


http://www.dotnetspark.com/qa/89- what-is-difference-between-bind-and-eval.aspx [ http://kalitinterviewquestions.blogspot.com/2009/06/what- is-difference-between-eval-and.html [ ^ ]

http://www.dotnetfunda.com/面试/exam3723-what-is-the-the-difference-between-eval-and-bind-methods.aspx [
Refer these


http://www.dotnetspark.com/qa/89-what-is-difference-between-bind-and-eval.aspx[^]

http://kalitinterviewquestions.blogspot.com/2009/06/what-is-difference-between-eval-and.html[^]

http://www.dotnetfunda.com/interview/exam3723-what-is-the-difference-between-eval-and-bind-methods.aspx[^]


这篇关于Eval和Bind有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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