473,503 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Eval, Bind...what's the difference?


What's the difference between #Eval and #Bind?

I built a grid view control that used Bind for display.

Then I wanted to format it conditionally -- so I converted it to
DataBinder.Eval()

It still seemed to be able to do two-way binding ( updates, inserts ).
Mar 27 '07 #1
2 8498
I think Eval is late bound, so its slower as it uses reflection, so its more
suited to template fields where early bidning is not easy to accomplish.
They both effectively do the same thing though.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"John Bailo" <ja*****@texeme.comwrote in message
news:Ir******************************@speakeasy.ne t...
>
What's the difference between #Eval and #Bind?

I built a grid view control that used Bind for display.

Then I wanted to format it conditionally -- so I converted it to
DataBinder.Eval()

It still seemed to be able to do two-way binding ( updates, inserts ).

Mar 27 '07 #2
Hello,

additionally, the Bind() keyword allows two-way binding.

Best regards,
Henning Krause

"John Timney (MVP)" <x_****@timney.eclipse.co.ukwrote in message
news:cN******************************@eclipse.net. uk...
>I think Eval is late bound, so its slower as it uses reflection, so its
more suited to template fields where early bidning is not easy to
accomplish. They both effectively do the same thing though.

Regards

John Timney (MVP)
http://www.johntimney.com
http://www.johntimney.com/blog

"John Bailo" <ja*****@texeme.comwrote in message
news:Ir******************************@speakeasy.ne t...
>>
What's the difference between #Eval and #Bind?

I built a grid view control that used Bind for display.

Then I wanted to format it conditionally -- so I converted it to
DataBinder.Eval()

It still seemed to be able to do two-way binding ( updates, inserts ).

Mar 27 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
8451
by: HikksNotAtHome | last post by:
This is a very simplified example of an Intranet application. But, is there an easier (or more efficient) way of getting the decimal equivalent of a fraction? The actual function gets the select...
4
2477
by: Søren Lund | last post by:
Hello, I am trying to bind a DataGrid with some data from a DataSet which contains fields in the form "group.fieldname". I am certain that my data source contains the field but I cannot get my...
1
2222
by: Mike Lerch | last post by:
Pretty much, TSIA, but I'll expand a bit: I'm still trying to get my head around the n-tier approach to web design. It seems to me that when you use DataBinder.Eval in the ASPX that your tiers...
8
2932
by: Randall Parker | last post by:
I want to generate an HTML tag that will look like: <a href="EquipmentServiceCreate.aspx?serial=X01">Create New Service For X01</a> or on a different instance where the user would be viewing...
1
2396
by: Donald Adams | last post by:
How can I use Eval or Bind with 2 values? The following does not work: <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='Workitem.aspx?ID=<%# Eval("ID", "{0}") %>&WID=<%# Eval("PIID",...
2
10302
by: Arvan | last post by:
hi,all. i wanna use Eval("DataField") to bind datarow in item template of GridView. for example: <asp:Label runat="server" id="Label1" text='<%# Eval("DataField") %>'><asp:Label> but how...
14
25232
by: DaTurk | last post by:
I am makeing a Multicast server client setup and was wondering what the difference is between Socket.Connect, and Socket.Bind. It may be a stupid question, but I was just curious. Because I...
1
16227
by: Owen Blacker | last post by:
I've spent loads of time Googling to try to work this one out and I'm sure it's something obvious. I get an InvalidOperationException reading "Databinding methods such as Eval(), XPath(), and...
1
1757
by: AlanJSmith | last post by:
Hi All, I am using ParseControl to load a formview contol from a string, some of the child controls are bound using Eval but these fail as Eval seems to have already been called within the parse...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5592
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.