Alex
Alex

Reputation: 77329

What is the difference between <%# and <%= in ASP.NET MVC?

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

Upvotes: 8

Views: 494

Answers (1)

Chris Van Opstal
Chris Van Opstal

Reputation: 37547

<%= is shorthand for Response.Write()

<%# is used to render data in databound controls

Upvotes: 11

Related Questions