AJ.
AJ.

Reputation: 11240

Information on <%# ... %> in .NET

Can someone point me in the right direction of some information on using:

<%# ... %>

It seems Google does not like <%# as a search term. I don't even know what such a construct is called.

Or maybe someone can give me a brief description of how it works?

Upvotes: 1

Views: 103

Answers (4)

Matt Dearing
Matt Dearing

Reputation: 9386

It can also be used to get around the error "The Controls collection cannot be modified because the control contains code blocks" as seen here link

Upvotes: 0

pjp
pjp

Reputation: 17629

It's data binding syntax

http://www.15seconds.com/Issue/040630.htm

Upvotes: 1

Ray
Ray

Reputation: 21905

It is a data-binding expression. Look here for a start.

Upvotes: 5

jball
jball

Reputation: 25014

This is used to reference DataItems in a DataBound control. Here's the MSDN ASP.NET data binding overview.

Upvotes: 1

Related Questions