What is the difference between Eval and Bind? - ProProfs Discuss
Advertisement

What is the difference between Eval and Bind?

Asked by B. Wright, Last updated: Mar 05, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

R. Jones

R. Jones

Curious about the World

R. Jones
R. Jones, Student, Postgraduate, Calgary

Answered Apr 14, 2020

Functions like eval and bind are mostly used for data binding, especially in ASP.NET. Eval and bind methods are used in ASP.NET by web programmers or designers when creating dynamic web pages. If you want to create customized columns, templates, or you want to perform data binding using ASP.NET, you will need "bind" and "eval" to achieve this.

Eval method can only be used for read-only functions, and this gives a programmer the chance to alter the display values. On the other hand, bind helps you to change or modify data. The values that will be put in each column can be changed or altered by using a checkbox or textbox controls.

In short, the major difference between eval and bind is that you can easily edit, change, modify a template; in fact, you can even delete a template using bind function. On the other hand, eval cannot be used to perform any of these functions.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.