Duplicate: http://stackoverflow.com/questions/649428/asp-net-special-tags
I work with PHP who using or for server tag ,but what the meaning and usage in ASP.NET's <%# %> and <%= %> ??
thanks you.
From stackoverflow
-
<%# %>indicates a data binding operation and is only valid within DataBinding controls (such as a DataGrid, ListView, etc).<%= %>is a shortcut toHttpContext.Current.Response.Write. It'll call the.ToString()method on any object/ method call (execpt for strings, it may be smart enough to not ToString a string). -
See this:
http://stackoverflow.com/questions/517721/in-asp-net-what-is-the-difference-between-and
0 comments:
Post a Comment