What is the exact difference between the scriptlet tags <%= some code %>
and <# some code %>
?
views:
177answers:
2
A:
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.
Elph
2010-05-07 10:12:04
+1
A:
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%>
Pramodh
2010-05-07 10:33:42
thanks pramodh :)
Arvind Bhatt
2010-05-07 10:45:25
can you please explain about second one ?
Arvind Bhatt
2010-05-07 10:48:56
:-) finejust confirm whether is it <# xxxx> or<@ xxxx>
Pramodh
2010-05-07 11:21:39