8

What is the difference between <%# and <%= in ASPX inline code?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Alex
  • 75,813
  • 86
  • 255
  • 348

1 Answers1

11

<%= is shorthand for Response.Write()

<%# is used to render data in databound controls

Chris Van Opstal
  • 36,423
  • 9
  • 73
  • 90