The <%= %> construct will write into the output stream of the page,
think of it as a Response.Write.
The <%# %> construct is the 'data binding' syntax. You can use the
data binding syntax to set the properties of controls on the page,
like setting the ImageUrl property of the Image control. Data binding
only happens if the control or the control's parent has the DataBind
method invoked. It's also used inside the ItemTemplates of a Repeater,
for instance, to spit out the values in the underlying data source.
Is that helpful?
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Mon, 29 Nov 2004 11:01:02 -0800, Jon
<Jo*@discussions.microsoft.com> wrote:
Hello all,
what the difference between <%# and <%= in asp.net?
Thanks all,
Jon