<% v.s. <%#

What is the purpose of the # in the <%# %> on a aspx page? I need to write a string out to the page and if I go<BR><% Response.write(getNeededString()) %> (where getNeededString is a method) it works fine. But if I go <%# Response.write(getNeededString()) %> the call fails.<BR><BR>Thanks<BR><BR>This link should answer your question:<BR><BR>http://www.vbcentral.net/quickstart/aspplus/doc/webdatabinding.aspx'<%# ... %>' is used when referring to bound data
 
Back
Top