What is the difference between <%# Bind(“”) %> and <%# Eval(“”) %> in ASP.NET?



Bind() is used to two-way data binding. So when used with the proper type of data source, it will pull the altered values out of the GridView or other control and save them back to the database.

<%# Bind(“ string ”) %>



Eval() is a one-way, "read only" way to bind the values.

<%# Eval(“ string ”) %>

No comments:

Post a Comment

Xamarin Android Project App

Xamarin Android Project App 1. Xamarin -- Make a CALCULATOR Android App   https://drive.google.com/open?id=0B8OPCXLrtKPmWC1FWWtFM2lraVk...