What is the exact difference between the scriptlet tags <%= some co开发者_如何学运维de %>
and <# some code %>
?
its some what related to JSP too
it can be used to print or display the value
Example:
In Jsp
<%String str=Response.getParameter(Field Name);%>
and if you want to access the value of "str" you should use
<%=str%>
Both tags are related to asp.net and not to javascript. Both are aquivalent to
<% Response.Write("something") %>
but the second only on databound context like gridview, datalists and repeaters.
精彩评论