magnattic
magnattic

Reputation: 12998

Item vs BindItem: Data Binding in ASP.NET 4.5

ASP.NET 4.5 introduces strongly typed data controls.

From what I could gather there are two options how to access the data item

<%# Item %>

and

<%# BindItem %>

I don't quite understand though, what exactly is the difference between those two? Is this just a matter of naming? Can they be used interchangeable?

Upvotes: 6

Views: 2690

Answers (1)

Erwin
Erwin

Reputation: 4817

This is the case:

Item: for one-way binding expressions.

BindItem: for two-way data-binding expressions.

Upvotes: 10

Related Questions