I was reading an .aspx file to see how it works. In a few places I saw things like:
<%# GetName( Container ) %>
I was wondering what this does. Thanks
I was reading an .aspx file to see how it works. In a few places I saw things like:
<%# GetName( Container ) %>
I was wondering what this does. Thanks
It is a data binding expression.
Data-binding expressions create bindings between a server control property and a data source
When you have called DataBind, the binding expressions get evaluated.
There are other <%%> types of expressions - see the links on the asp.net page syntax index page.
<%# Used for Binding Expressions; such as Eval and Bind, most often found in data controls like GridView, Repeater, etc.:
I've not seen it much. The must common is just <% or for outputing html use <%:
Hope this helps.