Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does <%# "whatever" %> mean in ASP.NET? [duplicate]

Possible Duplicate:
Meaning of the various symbols in .aspx page of asp.net

I'm familiar with <%= "whatever" %> as a shortcut for <% Response.Write("whatever"); %>.

But I've recently come across some code that uses <%# %> instead. In this particular codebase, it's only being used inside of an <asp:Repeater /> but I

What does <%# %> do and when can/should it be used?

like image 458
Mark Biek Avatar asked Dec 02 '11 20:12

Mark Biek


1 Answers

<%# ... %>

Data-binding expressions are an important set of code delimiters, which are used to create a binding between a server control property and a data source.

More about it here:

ASP.NET Code Delimiters

like image 50
Leniel Maccaferri Avatar answered Sep 29 '22 16:09

Leniel Maccaferri