开发者

What is the exact difference between the scriptlet tags <%= some code %> and <# some code %>?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜