tags:

views:

177

answers:

2

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

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
+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
thanks pramodh :)
Arvind Bhatt
can you please explain about second one ?
Arvind Bhatt
:-) finejust confirm whether is it <# xxxx> or<@ xxxx>
Pramodh