asp.net - What does the <#= symbol mean? -


what <# symbol means in asp.net inside html tag.

 <td><#= userinfo.observerresponsekey != null ? (userinfo.observerstatus == '<%= enum.getname(typeof(status), status.draft) %>' ? "draft shared " +  userinfo.observerdatesubmittedstring : userinfo.observerstatus == '<%= enum.getname(typeof(status), status.private) %>' ? "in progress" :  "completed " + userinfo.observerdatesubmittedstring) + " " + userinfo.observername : "not started"  #></td> 

i want add img td if result "in progress" or "completed".

i tried adding

 <td><#= userinfo.observerresponsekey != null ? (userinfo.observerstatus == '<%= enum.getname(typeof(status), status.draft) %>' ? "draft shared " +  userinfo.observerdatesubmittedstring : userinfo.observerstatus == '<%= enum.getname(typeof(status), status.private) %>' ? "in progress" :  "completed " + userinfo.observerdatesubmittedstring) + " " + userinfo.observername #><img src="../../images/icon_delete_red.png" /> <#= : "not started"  #></td> 

but throwing error "unparse microtemplate"

so, tag <#= mean? , how can add image in code?

please me..

embedded code blocks.

<%# %> data-binding expressions 

for example, in asp.net gridview, many times see this:

<%# eval("datacolumnname") %> 

there several other varieties of these:

<%= %> equivalent of `response.write()` <% %> runs server-side code, if-else block <%: %> html-encoding data <%@ %> directives, page directives in asp.net 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -