开发者

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

开发者 https://www.devze.com 2022-12-29 18:20 出处:网络
What is the exact difference between the scriptlet tags <%= some co开发者_如何学运维de %> 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

精彩评论

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