What is a <%#...%>

  • Thread starter Thread starter Wayne Wengert
  • Start date Start date
W

Wayne Wengert

In working with repeaters and other objects I often see code like
<%#Container.DataItem("CircuitState")%>

I also see the <%#...%> pattern used in what appear to be function calls.

Just what is the meaning of the "#" there? I tried a google search but if
you enter <%# as the search target it apparently confuses the search engine?

Also, in the first case above Exactly what does <%#container... mean? It
seems to refer to the next set of data for the repeater but I'd like to
understand this better.

Any pointers to some information on this would me appreciated.

Wayne
 
Wayne Wengert said:
In working with repeaters and other objects I often see code like
<%#Container.DataItem("CircuitState")%>

I also see the <%#...%> pattern used in what appear to be function calls.

Just what is the meaning of the "#" there? I tried a google search but if
you enter <%# as the search target it apparently confuses the search engine?

Also, in the first case above Exactly what does <%#container... mean? It
seems to refer to the next set of data for the repeater but I'd like to
understand this better.

Any pointers to some information on this would me appreciated.

Wayne

It is usually referred to as "databinding syntax".

It is code that is executed during the DataBind() method, as compared to
<%...%> code,which is executed during rendering.

Search Google for "asp.net" and "databinding syntax", and you will learn
more.
 
Thanks. Will Do!

Wayne
Jos Branders said:
It is usually referred to as "databinding syntax".

It is code that is executed during the DataBind() method, as compared to
<%...%> code,which is executed during rendering.

Search Google for "asp.net" and "databinding syntax", and you will learn
more.
 
Back
Top